PL-8676 NPE while adding condition to the filter with null caption

This commit is contained in:
Daniil Tsarev 2017-02-20 11:35:19 +04:00
parent 74509568c9
commit c0bcea84d5

View File

@ -960,6 +960,9 @@ public class FilterDelegateImpl implements FilterDelegate {
saveAction.setEnabled(filterSavingPossible && filterModified);
String currentCaption = groupBoxLayout.getCaption();
if (StringUtils.isEmpty(currentCaption))
return;
if (filterModified && !currentCaption.endsWith(MODIFIED_INDICATOR_SYMBOL)) {
groupBoxLayout.setCaption(currentCaption + MODIFIED_INDICATOR_SYMBOL);
}