6811674: Container.setComponentZOrder throws NPE

Reviewed-by: art, dcherepanov
This commit is contained in:
Anthony Petrov 2009-03-03 13:54:47 +03:00
parent ddc1549079
commit 7a593ea895

View File

@ -506,7 +506,9 @@ public class Container extends Component {
adjustDescendants(-(comp.countHierarchyMembers()));
comp.parent = null;
comp.setGraphicsConfiguration(null);
if (needRemoveNotify) {
comp.setGraphicsConfiguration(null);
}
component.remove(index);
invalidateIfValid();