aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/newt/classes/jogamp/newt/DisplayImpl.java6
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 ;