[izpack-changes] izpack-src/src/lib/com/izforge/izpack/panels UserInputPanel.java,1.42.4.2,1.42.4.3

miraodb nobody at sheep.berlios.de
Thu Jan 12 10:45:10 CET 2006


Update of /cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/panels
In directory sheep:/tmp/cvs-serv28740/src/lib/com/izforge/izpack/panels

Modified Files:
      Tag: branch-3-8
	UserInputPanel.java 
Log Message:
Towards 3.8.2

Fix for ComboBox in SearchField of UserInputPanel returning nullpointer if no options added

FM

Index: UserInputPanel.java
===================================================================
RCS file: /cvsroot/izpack/izpack-src/src/lib/com/izforge/izpack/panels/UserInputPanel.java,v
retrieving revision 1.42.4.2
retrieving revision 1.42.4.3
diff -u -d -r1.42.4.2 -r1.42.4.3
--- UserInputPanel.java	3 Jan 2006 13:53:48 -0000	1.42.4.2
+++ UserInputPanel.java	12 Jan 2006 09:45:08 -0000	1.42.4.3
@@ -2621,6 +2621,10 @@
              * Check if the user has entered data into the ComboBox and add it to the Itemlist
              */
             String selected = (String) this.pathComboBox.getSelectedItem();
+            if (selected == null)
+            {
+                return false;
+            }
             boolean found = false;
             for (int x = 0; x < this.pathComboBox.getItemCount(); x++)
             {




More information about the izpack-changes mailing list