eclipse.platform icon indicating copy to clipboard operation
eclipse.platform copied to clipboard

Fix logged NPE in ViewerUpdateMonitor constructor #1500

Open mx990 opened this issue 1 year ago • 0 comments

There is a logged NPE in the constructor of ViewerUpdateMonitor when viewerInput is null. This can happen sporadically when updating tree elements during Viewer.setInput(null).

This PR adds a check to avoid creating children updates when the viewer input is null.

Fixes https://github.com/eclipse-platform/eclipse.platform/issues/1500

mx990 avatar Aug 14 '24 11:08 mx990