aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/graphui/classes/com/jogamp/graph/ui/gl/shapes/MediaButton.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/MediaButton.java b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/MediaButton.java
index f3090069c..e858093ab 100644
--- a/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/MediaButton.java
+++ b/src/graphui/classes/com/jogamp/graph/ui/gl/shapes/MediaButton.java
@@ -128,7 +128,9 @@ public class MediaButton extends TexSeqButton {
resetGL = false;
try {
mPlayer.initGL(gl);
- region.markShapeDirty(); // reset texture data
+ if( null != region ) {
+ region.markShapeDirty(); // reset texture data
+ }
} catch (final Exception e) {
e.printStackTrace();
}