Skip to content

Commit

Permalink
Check if the widget is already disposed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mailaender committed Jan 13, 2025
1 parent 2e7de8a commit 58b9bc9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ public void update(ViewerCell cell) {
Image image = getIcon(element);
// https://github.com/eclipse-platform/eclipse.platform.swt/issues/678
Display.getCurrent().asyncExec(() -> {
cell.setImage(image);
if(!cell.getControl().isDisposed()) {
cell.setImage(image);
}
});
cell.setBackground(getBackground(element));
cell.setForeground(getForeground(element));
Expand Down

0 comments on commit 58b9bc9

Please sign in to comment.