mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
Refs #1631 Fix NPE while showNotifications in WebSearchField
This commit is contained in:
parent
5dbce82b22
commit
442f0a1b52
@ -97,8 +97,10 @@ public class WebSearchField
|
||||
setValue(optionsDatasource.getItem(id));
|
||||
}
|
||||
|
||||
if (optionsDatasource.getState() == Datasource.State.VALID && optionsDatasource.size() == 0)
|
||||
searchNotifications.notFoundSuggestions(newFilter);
|
||||
if (searchNotifications != null) {
|
||||
if (optionsDatasource.getState() == Datasource.State.VALID && optionsDatasource.size() == 0)
|
||||
searchNotifications.notFoundSuggestions(newFilter);
|
||||
}
|
||||
} else {
|
||||
if (optionsDatasource.getState() == Datasource.State.VALID)
|
||||
optionsDatasource.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user