Commit d766206d authored by Joachim Müssig's avatar Joachim Müssig

fix index out of bounds exception

parent 32f3082d
......@@ -748,8 +748,10 @@ public class DisproHandler implements ViolationsWrapperListener, SettingsObserve
resetListView(listViewCalledMethodsInSE);
// listViewSummaryEdges.getItems().add("CLOSED " + listViewSummaryEdges.getItems().get(selectedIndex));
listViewSummaryEdges.getItems().set(selectedIndex,
if(selectedIndex >= 0) {
listViewSummaryEdges.getItems().set(selectedIndex,
"CLOSED " + listViewSummaryEdges.getItems().get(selectedIndex));
}
// listViewSummaryEdges.getItems().removeIf((s) -> {
// return s.startsWith(e.toString());
// });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment