Index: src/test/api/java/common/javax/swing/JTextPaneTest.java =================================================================== --- src/test/api/java/common/javax/swing/JTextPaneTest.java (revision 490282) +++ src/test/api/java/common/javax/swing/JTextPaneTest.java (working copy) @@ -615,4 +615,13 @@ assertEquals(isSuperScript, StyleConstants.isSuperscript(attrs)); assertEquals(isUnderline, StyleConstants.isUnderline(attrs)); } + + public void testConstructor() { + try { + new JTextPane(null); + fail("NPE should be thrown"); + } catch (NullPointerException npe) { + // PASSED + } + } } \ No newline at end of file