JDK-6338269 : Regression: NPE with JOptionPane.getRootFrame()
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0u5,6
  • Priority: P1
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_xp
  • CPU: generic,x86
  • Submitted: 2005-10-18
  • Updated: 2017-05-16
  • Resolved: 2005-10-31
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 6
6 b59Fixed
Related Reports
Duplicate :  
Relates :  
Description
As reported in 
http://forums.java.net/jive/thread.jspa?threadID=1439&messageID=24570#24570

Intellij IDEA trows NPE from build 47, it is regression of the fix for 6300062.
JOptionPane.getRootFrame() starts to return null which leads to NPE

Expected behaviour:
JOptionPane.getRootFrame() should return shared owner frame as it used to.

Comments
EVALUATION We need to return the old functionality and partly roll back the fix for 6300062. To support the new modality API we need to introduce new constructors for JDialog and JWindow which can true parent-less windows and dialogs
18-10-2005