Fix possible NPE if applying filter before in was fully initialized #PL-4488

This commit is contained in:
Maxim Gorbunkov 2015-02-04 08:35:26 +00:00
parent 861222c45a
commit 2a025e7c07

View File

@ -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();