mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-15 21:15:23 +02:00
Bug 409006 - [visualizer] NPE when closing visualizer with nothing
selected in debug view Change-Id: If1c7fdbdd08822175e83eebc9fcd51b6bd859aae Reviewed-on: https://git.eclipse.org/r/13950 Reviewed-by: William Swanson <traveler@tilera.com> IP-Clean: William Swanson <traveler@tilera.com> Tested-by: William Swanson <traveler@tilera.com>
This commit is contained in:
parent
f02d888142
commit
06f0d1af10
1 changed files with 35 additions and 33 deletions
|
@ -12,6 +12,7 @@
|
||||||
* Marc Dumais (Ericsson) - Add CPU/core load information to the multicore visualizer (Bug 396268)
|
* Marc Dumais (Ericsson) - Add CPU/core load information to the multicore visualizer (Bug 396268)
|
||||||
* Marc Dumais (Ericsson) - Bug 399419
|
* Marc Dumais (Ericsson) - Bug 399419
|
||||||
* Marc Dumais (Ericsson) - Bug 405390
|
* Marc Dumais (Ericsson) - Bug 405390
|
||||||
|
* Marc Dumais (Ericsson) - Bug 409006
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.view;
|
package org.eclipse.cdt.dsf.gdb.multicorevisualizer.internal.ui.view;
|
||||||
|
@ -817,6 +818,7 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer
|
||||||
|
|
||||||
List<Object> items = SelectionUtils.getSelectedObjects(workbenchSelection);
|
List<Object> items = SelectionUtils.getSelectedObjects(workbenchSelection);
|
||||||
|
|
||||||
|
if (m_canvas != null) {
|
||||||
// Use the current canvas model to match Debug View items
|
// Use the current canvas model to match Debug View items
|
||||||
// with corresponding threads, if any.
|
// with corresponding threads, if any.
|
||||||
VisualizerModel model = m_canvas.getModel();
|
VisualizerModel model = m_canvas.getModel();
|
||||||
|
@ -854,9 +856,9 @@ public class MulticoreVisualizer extends GraphicCanvasVisualizer
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
visualizerSelection = SelectionUtils.toSelection(selected);
|
visualizerSelection = SelectionUtils.toSelection(selected);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return visualizerSelection;
|
return visualizerSelection;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue