summaryrefslogtreecommitdiffstats
path: root/src/newt
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-07-04 22:48:02 +0200
committerSven Gothel <[email protected]>2013-07-04 22:48:02 +0200
commitd4c022b6b0fe7c3553c7ae218758d6e062905e10 (patch)
tree05ef33f4c6fe16e893d8581f2919b1c43496bba2 /src/newt
parent99479bf3197cde8e89c5b499d135417863d521c7 (diff)
Fix NPE - Regression of commit 99479bf3197cde8e89c5b499d135417863d521c7
Diffstat (limited to 'src/newt')
-rw-r--r--src/newt/classes/jogamp/newt/WindowImpl.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/newt/classes/jogamp/newt/WindowImpl.java b/src/newt/classes/jogamp/newt/WindowImpl.java
index 460763f47..d24c6ed36 100644
--- a/src/newt/classes/jogamp/newt/WindowImpl.java
+++ b/src/newt/classes/jogamp/newt/WindowImpl.java
@@ -101,7 +101,9 @@ public abstract class WindowImpl implements Window, NEWTEventConsumer
final long wh = null != w ? w.getWindowHandle() : 0;
System.err.println("Window.shutdownAll["+(i+1)+"/"+wCount+"]: "+toHexString(wh)+", GCed "+(null==w));
}
- w.shutdown();
+ if( null != w ) {
+ w.shutdown();
+ }
}
}
private static void addWindow2List(WindowImpl window) {