harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r668104 - /harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicComboBoxUI.java
Date Mon, 16 Jun 2008 10:39:20 GMT
Author: tellison
Date: Mon Jun 16 03:39:19 2008
New Revision: 668104

URL: http://svn.apache.org/viewvc?rev=668104&view=rev
Log:
Null check recommended by Tharindu
(http://markmail.org/message/rpehre6joronqaxz)

Modified:
    harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicComboBoxUI.java

Modified: harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicComboBoxUI.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicComboBoxUI.java?rev=668104&r1=668103&r2=668104&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicComboBoxUI.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/plaf/basic/BasicComboBoxUI.java
Mon Jun 16 03:39:19 2008
@@ -721,7 +721,9 @@
 
     protected void unconfigureEditor() {
         editor.removeFocusListener(editorFocusListener);
-        comboBox.getEditor().removeActionListener(editorActionListener);
+        if (comboBox.getEditor() != null) {
+            comboBox.getEditor().removeActionListener(editorActionListener);
+        }
         editorFocusListener = null;
     }
 



Mime
View raw message