diff options
author | Sven Gothel <[email protected]> | 2011-09-28 17:22:39 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-09-28 17:22:39 +0200 |
commit | 14da95092f22298f66ad8e8cbd03eb0aae4b1695 (patch) | |
tree | 83af8ef710fa521ea5d06b66a2ce00565910ce49 | |
parent | e52a1337913683fc814209c983e6c8eaef812e5c (diff) |
NEWT DisplayImpl: Check for null event in task
-rw-r--r-- | src/newt/classes/jogamp/newt/DisplayImpl.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/newt/classes/jogamp/newt/DisplayImpl.java b/src/newt/classes/jogamp/newt/DisplayImpl.java index cfe9f0c2d..2d251614b 100644 --- a/src/newt/classes/jogamp/newt/DisplayImpl.java +++ b/src/newt/classes/jogamp/newt/DisplayImpl.java @@ -353,6 +353,12 @@ public abstract class DisplayImpl extends Display { final void dispatchMessage(final NEWTEventTask eventTask) { NEWTEvent event = eventTask.get(); + if(null == event) { + // Ooops ? + System.err.println("Warning: event of eventTask is NULL"); + Thread.dumpStack(); + return; + } Object source = event.getSource(); if(source instanceof NEWTEventConsumer) { NEWTEventConsumer consumer = (NEWTEventConsumer) source ; |