提交 27f090a5 编写于 作者: D dcherepanov

6852051: Getting Null Pointer Exception when displaying message for TrayIcon on Opensolaris

Reviewed-by: anthony
上级 a8159583
......@@ -9572,6 +9572,13 @@ public abstract class Component implements ImageObserver, MenuContainer,
return comp.getPeer();
}
}
// traversing the hierarchy up to the closest HW container;
// further traversing may return a component that is not actually
// a native sibling of this component and this kind of z-order
// request may not be allowed by the underlying system (6852051).
if (!cont.isLightweight()) {
break;
}
indexAbove = cont.getSiblingIndexAbove();
cont = cont.getContainer();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册