diff options
author | Michael Rennie | 2010-05-04 20:22:51 +0000 |
---|---|---|
committer | Michael Rennie | 2010-05-04 20:22:51 +0000 |
commit | d62878bccb580bdef3b11cd30a3e2d0994257803 (patch) | |
tree | f0f4005088d96018cef22987ddf533aeb33ef1b7 /org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples | |
parent | 3542a14328f7d519abd18bc2822e0435f388d041 (diff) | |
download | eclipse.platform.debug-d62878bccb580bdef3b11cd30a3e2d0994257803.tar.gz eclipse.platform.debug-d62878bccb580bdef3b11cd30a3e2d0994257803.tar.xz eclipse.platform.debug-d62878bccb580bdef3b11cd30a3e2d0994257803.zip |
Bug 311207 - [examples] NPE terminating PDA debug target
Diffstat (limited to 'org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples')
-rw-r--r-- | org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/views/DataStackView.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/views/DataStackView.java b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/views/DataStackView.java index 5e204755b..5e040fdbe 100644 --- a/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/views/DataStackView.java +++ b/org.eclipse.debug.examples.ui/src/org/eclipse/debug/examples/ui/pda/views/DataStackView.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2009 IBM Corporation and others. + * Copyright (c) 2005, 2010 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 @@ -145,7 +145,9 @@ public class DataStackView extends AbstractDebugView implements IDebugContextLis } public IStatus runInUIThread(IProgressMonitor monitor) { - update(event.getContext()); + if (getViewer() != null) { // runs asynchronously, view may be disposed + update(event.getContext()); + } return Status.OK_STATUS; } }.schedule(); |