提交 8229796f 编写于 作者: A anthony

6826104: Getting a NullPointer exception when clicked on Application & Toolkit Modal dialog

Summary: The addition of window peers to the windows collection has been restored in XWindowPeer.
Reviewed-by: art, dcherepanov
上级 bef01c09
......@@ -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();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册