mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
Fix possible NPE if applying filter before in was fully initialized #PL-4488
This commit is contained in:
parent
861222c45a
commit
2a025e7c07
@ -1086,13 +1086,15 @@ public class FilterDelegateImpl implements FilterDelegate {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean haveRequiredConditions = haveFilledRequiredConditions();
|
if (filterEntity != null) {
|
||||||
if (!haveRequiredConditions) {
|
boolean haveRequiredConditions = haveFilledRequiredConditions();
|
||||||
if (!isNewWindow) {
|
if (!haveRequiredConditions) {
|
||||||
windowManager.showNotification(messages.getMainMessage("filter.emptyRequiredConditions"),
|
if (!isNewWindow) {
|
||||||
IFrame.NotificationType.HUMANIZED);
|
windowManager.showNotification(messages.getMainMessage("filter.emptyRequiredConditions"),
|
||||||
|
IFrame.NotificationType.HUMANIZED);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
applyDatasourceFilter();
|
applyDatasourceFilter();
|
||||||
|
Loading…
Reference in New Issue
Block a user