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); }