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

Reviewed-by: anthony
This commit is contained in:
Dmitry Cherepanov 2009-08-27 17:04:47 +04:00
parent 02d0fa16db
commit 27d7a83c52

View File

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