From 6e8bf2d5caffe8734075fb84736d19a6e45e6e83 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 28 Nov 2010 03:30:14 +0100 Subject: NEWT WindowImpl: Null Check on childWindows (already destroyed) --- src/newt/classes/com/jogamp/newt/impl/WindowImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/newt/classes/com/jogamp/newt/impl/WindowImpl.java b/src/newt/classes/com/jogamp/newt/impl/WindowImpl.java index fd5c1b662..bb30c9a84 100644 --- a/src/newt/classes/com/jogamp/newt/impl/WindowImpl.java +++ b/src/newt/classes/com/jogamp/newt/impl/WindowImpl.java @@ -594,7 +594,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer lifecycleHook.resetCounter(); } - if(!visible && childWindows.size()>0) { + if(!visible && null!=childWindows && childWindows.size()>0) { synchronized(childWindowsLock) { for(int i = 0; i < childWindows.size(); i++ ) { NativeWindow nw = (NativeWindow) childWindows.get(i); @@ -622,7 +622,7 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer lifecycleHook.setVisibleActionPost(visible, nativeWindowCreated); } - if(0!=windowHandle && visible && childWindows.size()>0) { + if(0!=windowHandle && visible && null!=childWindows && childWindows.size()>0) { synchronized(childWindowsLock) { for(int i = 0; i < childWindows.size(); i++ ) { NativeWindow nw = (NativeWindow) childWindows.get(i); -- cgit v1.2.3