Skip to content

Commit

Permalink
MID-6105 Fix NullPointerException
Browse files Browse the repository at this point in the history
  • Loading branch information
wadahiro authored and KaterynaHonchar committed Mar 11, 2020
1 parent 9ac5638 commit 0e506c4
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -369,7 +369,11 @@ public void populateItem(org.apache.wicket.markup.repeater.Item<ICellPopulator<S

@Override
public IModel<?> getDataModel(IModel<SelectableBean<O>> rowModel) {
Item<?, ?> item = rowModel.getObject().getValue().asPrismContainerValue().findItem(columnPath);
O value = rowModel.getObject().getValue();
if (value == null) {
return Model.of("");
}
Item<?, ?> item = value.asPrismContainerValue().findItem(columnPath);
if (item != null) {
if (item.getDefinition() != null && item.getDefinition().getValueEnumerationRef() != null &&
item.getDefinition().getValueEnumerationRef().getOid() != null){
Expand Down

0 comments on commit 0e506c4

Please sign in to comment.