From acd1317950202ecb0610f315dd8f22cef85d5883 Mon Sep 17 00:00:00 2001 From: anthony Date: Tue, 3 Mar 2009 13:54:47 +0300 Subject: [PATCH] 6811674: Container.setComponentZOrder throws NPE Reviewed-by: art, dcherepanov --- src/share/classes/java/awt/Container.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/share/classes/java/awt/Container.java b/src/share/classes/java/awt/Container.java index fb520547e..2a4050880 100644 --- a/src/share/classes/java/awt/Container.java +++ b/src/share/classes/java/awt/Container.java @@ -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(); -- GitLab