jdk/src/solaris/classes/sun/awt/X11/XToolkit.java
changeset 5760 4177643566d5
parent 5758 6fef7077b8a6
child 5944 1041870341a8
--- a/jdk/src/solaris/classes/sun/awt/X11/XToolkit.java	Fri Jun 18 17:09:28 2010 +0400
+++ b/jdk/src/solaris/classes/sun/awt/X11/XToolkit.java	Fri Jun 18 17:13:26 2010 +0400
@@ -849,7 +849,7 @@
                     // if _NET_WM_STRUT_PARTIAL is present, we should use its values to detect
                     // if the struts area intersects with screenBounds, however some window
                     // managers don't set this hint correctly, so we just get intersection with windowBounds
-                    if (windowBounds.intersects(screenBounds))
+                    if (windowBounds != null && windowBounds.intersects(screenBounds))
                     {
                         insets.left = Math.max((int)Native.getLong(native_ptr, 0), insets.left);
                         insets.right = Math.max((int)Native.getLong(native_ptr, 1), insets.right);