diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gleem/ExaminerViewer.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gleem/ExaminerViewer.java b/src/gleem/ExaminerViewer.java index 7c2d39f..a7f3d64 100644 --- a/src/gleem/ExaminerViewer.java +++ b/src/gleem/ExaminerViewer.java @@ -338,10 +338,12 @@ public class ExaminerViewer { } private void removeListeners() { - window.removeMouseMotionListener(mouseMotionListener); - window.removeMouseListener(mouseListener); - window.removeGLEventListener(glListener); - ManipManager.getManipManager().setupMouseListeners(window); + if (window != null) { + window.removeMouseMotionListener(mouseMotionListener); + window.removeMouseListener(mouseListener); + window.removeGLEventListener(glListener); + ManipManager.getManipManager().setupMouseListeners(window); + } } private void passiveMotionMethod(MouseEvent e) { |