From 5649e204bb2b77a6adb9986593332c4b33e81b86 Mon Sep 17 00:00:00 2001 From: Lars Bilke <lars.bilke@ufz.de> Date: Thu, 2 Mar 2017 13:03:49 +0100 Subject: [PATCH] [insitu] Check for initialization. --- Applications/InSituLib/Adaptor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Applications/InSituLib/Adaptor.cpp b/Applications/InSituLib/Adaptor.cpp index 380790b11be..7ac894811ab 100644 --- a/Applications/InSituLib/Adaptor.cpp +++ b/Applications/InSituLib/Adaptor.cpp @@ -56,6 +56,9 @@ void Finalize() void CoProcess(MeshLib::Mesh const& mesh, double const time, unsigned int const timeStep, bool const lastTimeStep) { + if (Processor == NULL) + return; + vtkNew<vtkCPDataDescription> dataDescription; dataDescription->AddInput("input"); dataDescription->SetTimeData(time, timeStep); -- GitLab