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