Fix for bug 1705, java.lang.NullPointerException by 'Create Worker' when looking up existing user
This commit is contained in:
parent
1e58368f3e
commit
82255f5ee1
1 changed files with 5 additions and 4 deletions
|
|
@ -143,10 +143,11 @@ public class BandboxSearch extends HtmlMacroComponent {
|
|||
}
|
||||
|
||||
public void pickElementFromList() {
|
||||
final Object object = getSelectedItem().getValue();
|
||||
bandbox.setValue(finder.objectToString(object));
|
||||
setSelectedElement(object);
|
||||
Util.getBinder(this).saveAttribute(this, SELECTED_ELEMENT_ATTRIBUTE);
|
||||
final Listitem listitem = getSelectedItem();
|
||||
|
||||
if ( listitem != null ) {
|
||||
setSelectedElement(listitem.getValue());
|
||||
}
|
||||
}
|
||||
|
||||
private void clearSelectedElement() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue