Fix critical issue when creating comboboxes with the multiple selection untouched

This commit is contained in:
George Kalampokis 2021-02-23 17:33:55 +02:00
parent 389aa3031c
commit e88f88d97c
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class WordListData extends ComboBoxData<WordListData> {
}
}
Object multiList1 = ((Map<String, Object>) data).get("multiList");
this.multiList = multiList1 instanceof String ? Boolean.parseBoolean((String) multiList1) : (Boolean) multiList1;
this.multiList = multiList1 != null && (multiList1 instanceof String ? Boolean.parseBoolean((String) multiList1) : (Boolean) multiList1);
}
return this;
}