eclipse-platform / eclipse.platform

https://eclipse.dev/eclipse/
Eclipse Public License 2.0
84 stars 113 forks source link

Fix logged NPE in ViewerUpdateMonitor constructor #1500 #1508

Open mx990 opened 3 months ago

mx990 commented 3 months ago

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