Skip to content

Changes

Summary

  1. [510279] Fix potential NPE in AbstractEEFWidgetLifecycleManager (details)
Commit 102fc7b8d586063db726774e693df38a49cb7b40 by Stephane Begaudeau
[510279] Fix potential NPE in AbstractEEFWidgetLifecycleManager

AbstractEEFWidgetLifecycleManager.lockedBy* are called asynchronously
and sometimes this can occur at a time when the ControlDecoration has
been disposed, causing NPEs in ControlDecoration.setImage() when it
accesses control.getShell(). ControlDecoration does not have an
isDisposed() method, but testing for getControl() != null is
equivalent.

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=510279
Change-Id: Icf155151eacbdbf50db4161955222f566dadf70e
Signed-off-by: Stéphane Bégaudeau <stephane.begaudeau@obeo.fr>
The file was modified plugins/org.eclipse.eef.ide.ui/src/org/eclipse/eef/ide/ui/api/widgets/AbstractEEFWidgetLifecycleManager.java