JDK-8158734 : JEditorPane.createEditorKitForContentType throws NPE after 6882559
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u92,9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-06-06
  • Updated: 2017-01-11
  • Resolved: 2016-08-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9 Other
7u121Fixed 8u102Fixed 9Fixed openjdk7uFixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Test api/javax_swing/JEditorPane/index.html\#equiv is failed due to NPE
Removed critical watch - as only needed for 7u121, and not for 7u111.

Test code: public Status JEditorPane0003() { String testCaseID = "JEditorPane0003"; ref.println("====== " + testCaseID + " ======" + " public final void setContentType(String type)"); JEditorPane c = new JEditorPane(); c.setContentType("test/test"); String getValue = c.getContentType(); if (!(getValue == "text/plain")) { return Status.failed("Failed to get the value."); } return Status.passed("OKAY"); }

RULE "api/javax_swing/JEditorPane/index_equiv" Exception java.lang.NullPointerException RULE "api/javax_swing/JEditorPane/index_equiv" TestCase [JEditorPane0003] Test case throws exception: java.lang.NullPointerException

Please see attachment for more detail.