mirror of
https://github.com/eclipse-cdt/cdt
synced 2024-10-28 12:09:40 +01:00
Bug 436935 - Invalid thread access when exiting Eclipse after debugging
Change-Id: I7068ba3558e367c2fde35abbaaa89b9122c0f4b6 Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com> Reviewed-on: https://git.eclipse.org/r/28184 Tested-by: Hudson CI Tested-by: Alvaro Sanchez-Leon <alvsan09@gmail.com> Reviewed-by: Elena Laskavaia <elaskavaia.cdt@gmail.com> Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com>
This commit is contained in:
parent
60255bc58d
commit
b87b828496
1 changed files with 2 additions and 2 deletions
|
@ -661,8 +661,8 @@ public class DsfSourceDisplayAdapter implements ISourceDisplay, ISteppingControl
|
|||
// fSourceLookupParticipant is disposed by the source lookup director
|
||||
|
||||
// Need to remove annotations in UI thread.
|
||||
Display display = Display.getDefault();
|
||||
if (!display.isDisposed()) {
|
||||
Display display = PlatformUI.getWorkbench().getDisplay();
|
||||
if (display != null && !display.isDisposed()) {
|
||||
display.asyncExec(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
Loading…
Reference in a new issue