Fixed null check for rootpane border.
authorRoman Kennke <roman.kennke@aicas.com>
Tue Feb 03 22:47:57 2009 +0100 (13 months ago)
changeset 1542e72e77d2a0c
parent 1531dab84d4e5f7
child 155efc89370f743
Fixed null check for rootpane border.
src/sun/awt/peer/cacio/CacioWindowPeer.java
--- a/src/sun/awt/peer/cacio/CacioWindowPeer.java Tue Feb 03 22:39:32 2009 +0100
+++ b/src/sun/awt/peer/cacio/CacioWindowPeer.java Tue Feb 03 22:47:57 2009 +0100
@@ -303,10 +303,10 @@ class CacioWindowPeer extends CacioConta
int top = cpBounds.y + lpLoc.y;
int left = cpBounds.x + lpLoc.x;
Border b = rp.getBorder();
- Insets bi = b.getBorderInsets(rp);
int bottom;
int right;
if (b != null) {
+ Insets bi = b.getBorderInsets(rp);
bottom = bi.bottom;
right = bi.right;
} else {