Index: src/test/api/java.injected/javax/swing/border/MatteBorderTest.java =================================================================== --- src/test/api/java.injected/javax/swing/border/MatteBorderTest.java (revision 543122) +++ src/test/api/java.injected/javax/swing/border/MatteBorderTest.java (working copy) @@ -89,6 +89,13 @@ icon = new ImageIcon(new BufferedImage(30, 40, BufferedImage.TYPE_4BYTE_ABGR)); border = new MatteBorder(icon); assertEquals("icon value coinsides", icon, border.getTileIcon()); + + //Regression test for HARMONY-2589 + try { + new MatteBorder(null); + } catch (NullPointerException npe) { + fail("Uncompartible with RI npe has been thrown"); //$NON-NLS-1$ + } } /* @@ -307,5 +314,5 @@ color = Color.YELLOW; border = new MatteBorder(top, left, bottom, right, color); assertEquals("Colors coinside ", color, border.getMatteColor()); - } -} + } +} \ No newline at end of file