Index: src/test/api/java/common/javax/swing/JEditorPaneTest.java =================================================================== --- src/test/api/java/common/javax/swing/JEditorPaneTest.java (revision 490282) +++ src/test/api/java/common/javax/swing/JEditorPaneTest.java (working copy) @@ -787,4 +787,14 @@ .getEditorKitClassNameForContentType("text/rtf")); assertNull(JEditorPane.getEditorKitClassNameForContentType("...")); } + + public void testSetContentType() { + try { + JEditorPane ep = new JEditorPane(); + ep.setContentType(null); + fail("NPE should be thrown"); + } catch (NullPointerException npe) { + // PASSED + } + } } \ No newline at end of file