Skip to content

Commit

Permalink
npe fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Feb 17, 2020
1 parent a183c13 commit 61e6a3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -117,8 +117,7 @@ protected void populateItem(ListItem<VW> item) {

@Override
public boolean isEnabled() {
return !getModelObject().isReadOnly() && (itemPanelSettings.getEditabilityHandler() == null ||
itemPanelSettings.getEditabilityHandler().isEditable(getModelObject()));
return !getModelObject().isReadOnly();
}

// VALUE REGION
Expand Down
Expand Up @@ -196,7 +196,7 @@ protected void onError(AjaxRequestTarget target, RuntimeException e) {
}

});
formComponent.add(new EnableBehaviour(() -> itemPanelSettings.getEditabilityHandler() == null ||
formComponent.add(new EnableBehaviour(() -> itemPanelSettings == null || itemPanelSettings.getEditabilityHandler() == null ||
itemPanelSettings.getEditabilityHandler().isEditable(getModelObject())));
}

Expand Down

0 comments on commit 61e6a3b

Please sign in to comment.