Fix critical issue when creating comboboxes with the multiple selection untouched

(cherry picked from commit e88f88d97c)
This commit is contained in:
George Kalampokis 2021-02-23 17:33:55 +02:00 committed by Diamantis Tziotzios
parent 081995e243
commit 535c250bae
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;
}