https://glazedlists.dev.java.net/issues/show_bug.cgi?id=461 Issue #|461
Summary|NPE in autocompletesupport
Component|glazedlists
Version|1.7.0
Platform|Macintosh
OS/Version|All
URL|
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|swing
Assigned to|jessewilson
Reported by|johanandren
------- Additional comments from
johanandren@... Tue Nov 25 09:31:57 +0000 2008 -------
We use beansbinding together with the AutoCompleteSupport and get a NPE from the
AutoCompleteSupport:1066 sometime during initialization of the screen when setSelectedItem was called
by the bindings.
Added this and the problem disappeared:
// remove any text selection that might exist when an item is selected
if (comboBoxEditor != null) {
final int caretPos = comboBoxEditorComponent.getCaretPosition();
comboBoxEditorComponent.select(caretPos, caretPos);
}
---------------------------------------------------------------------
To unsubscribe, e-mail:
issues-unsubscribe@...
For additional commands, e-mail:
issues-help@...