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:
Anthony Petrov 2009-04-17 16:16:14 +04:00
parent 4f420274a7
commit e06ad08fd4

View File

@ -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();