From 767ca29c8f5b194a23a05436c3390890dfa95439 Mon Sep 17 00:00:00 2001 From: gohai Date: Wed, 27 Apr 2016 15:07:54 +0200 Subject: [PATCH] Be more verbose with drawExceptions with cause null Before: java.lang.RuntimeException at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:449) at java.lang.Thread.run(Thread.java:745) After: java.lang.RuntimeException: Waited 5000ms for: [count 1, qsz 0, owner ] - at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:452) at java.lang.Thread.run(Thread.java:745) --- core/src/processing/opengl/PSurfaceJOGL.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/processing/opengl/PSurfaceJOGL.java b/core/src/processing/opengl/PSurfaceJOGL.java index b006d69cd..75b2b926b 100644 --- a/core/src/processing/opengl/PSurfaceJOGL.java +++ b/core/src/processing/opengl/PSurfaceJOGL.java @@ -445,6 +445,8 @@ public class PSurfaceJOGL implements PSurface { throw (RuntimeException)cause; } else if (cause instanceof UnsatisfiedLinkError) { throw new UnsatisfiedLinkError(cause.getMessage()); + } else if (cause == null) { + throw new RuntimeException(drawException.getMessage()); } else { throw new RuntimeException(cause); }