mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-04 20:28:00 +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 (!haveRequiredConditions) {
|
||||
if (!isNewWindow) {
|
||||
windowManager.showNotification(messages.getMainMessage("filter.emptyRequiredConditions"),
|
||||
IFrame.NotificationType.HUMANIZED);
|
||||
if (filterEntity != null) {
|
||||
boolean haveRequiredConditions = haveFilledRequiredConditions();
|
||||
if (!haveRequiredConditions) {
|
||||
if (!isNewWindow) {
|
||||
windowManager.showNotification(messages.getMainMessage("filter.emptyRequiredConditions"),
|
||||
IFrame.NotificationType.HUMANIZED);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
applyDatasourceFilter();
|
||||
|
Loading…
Reference in New Issue
Block a user