Skip to content

Commit

Permalink
MID-8745 NPE fix in simulation result table for show objects action
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Apr 3, 2023
1 parent a7706a3 commit be52408
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,14 @@ public InlineMenuItemAction initAction() {

@Override
public void onClick(AjaxRequestTarget target) {
SelectableBean<SimulationResultType> bean = getRowModel().getObject();
List<SelectableBean<SimulationResultType>> selected = isAnythingSelected(target, getRowModel());
if (selected.isEmpty()) {
getPageBase().warn(getString("FocusListInlineMenuHelper.message.nothingSelected"));
target.add(getFeedbackPanel());
return;
}

SelectableBean<SimulationResultType> bean = selected.get(0);
listProcessedObjectsPerformed(bean.getValue());
}
};
Expand Down

0 comments on commit be52408

Please sign in to comment.