From 4f8014e09df50afd4d244224f16cbb7d38f6ad09 Mon Sep 17 00:00:00 2001 From: Anton Piccardo-Selg <anton.piccardo-selg@tessella.com> Date: Fri, 8 May 2015 10:08:43 +0100 Subject: [PATCH] Refs #11677 fix crash when not haveing active source --- .../VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp index 50430c615b3..e3b5e452c4c 100644 --- a/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp +++ b/Code/Mantid/Vates/VatesSimpleGui/ViewWidgets/src/SplatterPlotView.cpp @@ -150,6 +150,13 @@ void SplatterPlotView::render() pqPipelineSource *src = NULL; src = pqActiveObjects::instance().activeSource(); + // Hedge for no active source + if (!src) + { + g_log.warning() << "SplatterPlotView: Active source is NULL. Cannot render."; + return; + } + QString renderType = "Points"; pqObjectBuilder* builder = pqApplicationCore::instance()->getObjectBuilder(); -- GitLab