PDA

View Full Version : [FIXED] ComboBox onSelect() bug fixed



axeldxter
10 Jun 2008, 2:41 PM
I think I fixed a bug that happens in the onSelect() method of the ComboBox class. When something is selected when the current selection is empty, the value of focusValue = getValue() is null, so a NullPointerException is thrown in:



if (!focusValue.equals(getValue()))
I fixed it by changing the code like this:



if (focusValue != null && !focusValue.equals(getValue()))
I wish this is of some use.

darrellmeyer
10 Jun 2008, 8:19 PM
Thanks, the fix is in SVN.