classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: fixlet for javax.swing.plaf.basic.BasicListUI


From: Roman Kennke
Subject: [cp-patches] FYI: fixlet for javax.swing.plaf.basic.BasicListUI
Date: Fri, 03 Jun 2005 16:38:16 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204

I added a null-check into BasicListUI. This should fix https://savannah.gnu.org/bugs/?func=detailitem&item_id=13262

2005-06-03  Roman Kennke  <address@hidden>

   * javax/swing/plaf/basic/BasicListUI.java
   (damageLayout): Check for list beeing null before revalidating
   it.


/Roman

Index: BasicListUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicListUI.java,v
retrieving revision 1.16
diff -u -r1.16 BasicListUI.java
--- BasicListUI.java    26 Apr 2005 18:56:19 -0000      1.16
+++ BasicListUI.java    3 Jun 2005 14:36:01 -0000
@@ -498,7 +498,8 @@
   void damageLayout()
   {
     updateLayoutStateNeeded = 1;
-    list.revalidate();
+    if (list != null)
+      list.revalidate();
   }
 
   /**

reply via email to

[Prev in Thread] Current Thread [Next in Thread]