summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Dumais2013-02-12 13:22:26 (EST)
committer Marc Khouzam2013-02-12 13:27:23 (EST)
commit7a656b87e51127421469011bbf0c37bbc720a447 (patch)
tree7a952fdbafd0dfda630f286ca3768bfc6fbf5890
parent5d335384e369003159a8eca5298cc83253864882 (diff)
downloadorg.eclipse.cdt-7a656b87e51127421469011bbf0c37bbc720a447.zip
org.eclipse.cdt-7a656b87e51127421469011bbf0c37bbc720a447.tar.gz
org.eclipse.cdt-7a656b87e51127421469011bbf0c37bbc720a447.tar.bz2
Bug 400231 - MulticoreVisualizer: NPE inrefs/changes/90/10290/3
MulticoreVisualizerEventListener.handleEvent(IExitedDMEvent) Change-Id: Iac1567de8a72e2a72a57d35f492710472142ac94 Reviewed-on: https://git.eclipse.org/r/10290 Reviewed-by: Marc Khouzam <marc.khouzam@ericsson.com> IP-Clean: Marc Khouzam <marc.khouzam@ericsson.com> Tested-by: Marc Khouzam <marc.khouzam@ericsson.com>
-rw-r--r--dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizerEventListener.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizerEventListener.java b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizerEventListener.java
index cacb15f..bd8e706 100644
--- a/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizerEventListener.java
+++ b/dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui/src/org/eclipse/cdt/dsf/gdb/multicorevisualizer/internal/ui/view/MulticoreVisualizerEventListener.java
@@ -7,6 +7,7 @@
*
* Contributors:
* Marc Khouzam (Ericsson) - initial API and implementation
+ * Marc Dumais (Ericsson) - Bug 400231
*******************************************************************************/
package org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.view;
@@ -187,7 +188,10 @@ public class MulticoreVisualizerEventListener {
fVisualizer.getModel().markThreadExited(tid);
- fVisualizer.getMulticoreVisualizerCanvas().requestUpdate();
+ MulticoreVisualizerCanvas canvas = fVisualizer.getMulticoreVisualizerCanvas();
+ if (canvas != null) {
+ canvas.requestUpdate();
+ }
}
}
}