summaryrefslogtreecommitdiff
path: root/javax/swing/JComponent.java
diff options
context:
space:
mode:
Diffstat (limited to 'javax/swing/JComponent.java')
-rw-r--r--javax/swing/JComponent.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/javax/swing/JComponent.java b/javax/swing/JComponent.java
index f8d82c736..d916d0583 100644
--- a/javax/swing/JComponent.java
+++ b/javax/swing/JComponent.java
@@ -1764,8 +1764,9 @@ public abstract class JComponent extends Container implements Serializable
paintBorder(g2);
paintChildren(g2);
Rectangle clip = g2.getClipBounds();
- if (clip.x == 0 && clip.y == 0 && clip.width == getWidth()
- && clip.height == getHeight())
+ if (clip == null
+ || (clip.x == 0 && clip.y == 0 && clip.width == getWidth()
+ && clip.height == getHeight()))
RepaintManager.currentManager(this).markCompletelyClean(this);
}
}