mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-03 03:38:33 +08:00
NPE when choose "No Filter" option in Filter Select #PL-2743
This commit is contained in:
parent
01db94dafa
commit
add80f9fa0
@ -1252,8 +1252,10 @@ public class DesktopFilter extends DesktopAbstractComponent<JPanel> implements F
|
||||
if (changingFilter)
|
||||
return;
|
||||
|
||||
filterEntity = ((ItemWrapper<FilterEntity>) select.getValue()).getItem();
|
||||
if (filterEntity.equals(noFilter)) {
|
||||
ItemWrapper<FilterEntity> selected = (ItemWrapper<FilterEntity>) select.getValue();
|
||||
|
||||
filterEntity = selected == null ? null : selected.getItem();
|
||||
if (noFilter.equals(filterEntity)) {
|
||||
filterEntity = null;
|
||||
}
|
||||
if ((filterEntity != null) && (applyTo != null) && (Table.class.isAssignableFrom(applyTo.getClass()))) {
|
||||
|
Loading…
Reference in New Issue
Block a user