diff --git a/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java b/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java index 13965a78..ddcbeb9d 100644 --- a/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java +++ b/src/main/java/ch/ethz/seb/sebserver/gui/table/EntityTable.java @@ -224,7 +224,7 @@ public class EntityTable { } this.table.addListener(SWT.Selection, event -> { if (this.multiselection != null && event.item != null) { - if (event.item == null || event.item.isDisposed()) { + if (event.item.isDisposed()) { return; } handleMultiSelection((TableItem) event.item); @@ -530,9 +530,6 @@ public class EntityTable { // first remove all rows if there are some this.table.removeAll(); - if (this.multiselection != null) { - this.multiselection.clear(); - } // get page data and create rows final Page page = this.pageSupplier.newBuilder()