changeset 4292:f5a3e0dfc93a

merge
author Martin Sladecek <martin.sladecek@oracle.com>
date Mon, 15 Jul 2013 14:17:02 +0200
parents 0318a5d3d917 233be46d9596
children ab0736381727
files
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/modules/graphics/src/main/java/com/sun/glass/ui/Window.java	Mon Jul 15 14:15:01 2013 +0200
+++ b/modules/graphics/src/main/java/com/sun/glass/ui/Window.java	Mon Jul 15 14:17:02 2013 +0200
@@ -288,7 +288,9 @@
     public void close() {
         Application.checkEventThread();
         if (this.view != null) {
-            _setView(this.ptr, null);
+            if (this.ptr != 0L) {
+                _setView(this.ptr, null);
+            }
             this.view.setWindow(null);
             this.view.close();
             this.view = null;