I fixed a condition in RepaintManager.validateInvalidComponents() to
avoid an NPE.

2006-01-10  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/RepaintManager.java
        (validateInvalidComponents): Fixed condition to avoid NPE.

/Roman
Index: javax/swing/RepaintManager.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/RepaintManager.java,v
retrieving revision 1.20
diff -u -r1.20 RepaintManager.java
--- javax/swing/RepaintManager.java	5 Jan 2006 16:26:14 -0000	1.20
+++ javax/swing/RepaintManager.java	10 Jan 2006 13:05:23 -0000
@@ -536,8 +536,8 @@
       {
         Component comp = (Component) i.next();
         // Find validate root.
-        while (!(comp instanceof JComponent)
-               || !((JComponent) comp).isValidateRoot()
+        while ((!(comp instanceof JComponent)
+               || !((JComponent) comp).isValidateRoot())
                && comp.getParent() != null)
           comp = comp.getParent();
 
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches

Reply via email to