diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/ExpressionInformationControlCreator.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/ExpressionInformationControlCreator.java index ca0ee3decc8..6e1a60b2bfb 100644 --- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/ExpressionInformationControlCreator.java +++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/internal/ui/ExpressionInformationControlCreator.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2008, 2010 IBM Corporation and others. + * Copyright (c) 2008, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -359,15 +359,18 @@ public class ExpressionInformationControlCreator implements IInformationControlC fViewer.getDisplay().timerExec(100, new Runnable() { @Override public void run() { - TreeSelection selection = (TreeSelection) fViewer.getSelection(); - if (selection.isEmpty()) { - selection = new TreeSelection(fViewer.getTopElementPath()); - } - fViewer.setSelection(selection); - if (fDetailPane != null) { - fDetailPane.display(selection); - } - }}); + if (!fViewer.getTree().isDisposed()) { + TreeSelection selection = (TreeSelection) fViewer.getSelection(); + if (selection.isEmpty()) { + selection = new TreeSelection(fViewer.getTopElementPath()); + } + fViewer.setSelection(selection); + if (fDetailPane != null) { + fDetailPane.display(selection); + } + } + } + }); } @Override public void viewerUpdatesBegin() {