6826104: Getting a NullPointer exception when clicked on Application & Toolkit Modal dialog
The addition of window peers to the windows collection has been restored in XWindowPeer. Reviewed-by: art, dcherepanov
This commit is contained in:
parent
4f420274a7
commit
e06ad08fd4
@ -146,6 +146,13 @@ class XWindowPeer extends XPanelPeer implements WindowPeer,
|
||||
|
||||
params.put(OVERRIDE_REDIRECT, Boolean.valueOf(isOverrideRedirect()));
|
||||
|
||||
SunToolkit.awtLock();
|
||||
try {
|
||||
windows.add(this);
|
||||
} finally {
|
||||
SunToolkit.awtUnlock();
|
||||
}
|
||||
|
||||
cachedFocusableWindow = isFocusableWindow();
|
||||
|
||||
Font f = target.getFont();
|
||||
|
Loading…
Reference in New Issue
Block a user