summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-28 03:30:14 +0100
committerSven Gothel <[email protected]>2010-11-28 03:30:14 +0100
commit6e8bf2d5caffe8734075fb84736d19a6e45e6e83 (patch)
tree7456a54bcb4c2075308ad98d4a69f5e687e4db52 /src
parent8ffb0bd7d4e1b3b22630a14a71948b281c39b6e7 (diff)
NEWT WindowImpl: Null Check on childWindows (already destroyed)
Diffstat (limited to 'src')
-rw-r--r--src/newt/classes/com/jogamp/newt/impl/WindowImpl.java4
1 files changed, 2 insertions, 2 deletions
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);