summaryrefslogtreecommitdiffstats
path: root/src/net/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/java')
-rw-r--r--src/net/java/games/jogl/GLJPanel.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net/java/games/jogl/GLJPanel.java b/src/net/java/games/jogl/GLJPanel.java
index bf102710b..07399b978 100644
--- a/src/net/java/games/jogl/GLJPanel.java
+++ b/src/net/java/games/jogl/GLJPanel.java
@@ -489,7 +489,10 @@ public final class GLJPanel extends JPanel implements GLDrawable {
pbufferInitializationCompleted = true;
EventQueue.invokeLater(new Runnable() {
public void run() {
- toplevel.setVisible(false);
+ // Race conditions might dispose of this before now
+ if (toplevel != null) {
+ toplevel.setVisible(false);
+ }
}
});
}