mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-313725 java.lang.NullPointerException: Cannot invoke "javax.swing.JRootPane.getGlassPane()" because the return value of "javax.swing.JFrame.getRootPane()" is null causes unresponsive UI
GitOrigin-RevId: 7cdfc9803d7583ce9510713295b741aa88a80d97
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8490b4601b
commit
1ee2d706e7
@@ -39,6 +39,7 @@ import java.awt.event.ComponentListener
|
||||
import java.util.concurrent.atomic.AtomicReference
|
||||
import javax.swing.JDialog
|
||||
import javax.swing.JFrame
|
||||
import javax.swing.JOptionPane
|
||||
import javax.swing.JWindow
|
||||
|
||||
private val LOG = logger<WindowManagerImpl>()
|
||||
@@ -289,6 +290,9 @@ class WindowManagerImpl : WindowManagerEx(), PersistentStateComponentWithModific
|
||||
frameToReuse.set(releasedFrameHelper.frame)
|
||||
releasedFrameHelper.frame.doSetRootPane(null)
|
||||
releasedFrameHelper.frame.setFrameHelper(null)
|
||||
if (JOptionPane.getRootFrame() === releasedFrameHelper.frame) {
|
||||
JOptionPane.setRootFrame(null)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user