From 5f6c2974430b944af379b63b37f8391bdff318c4 Mon Sep 17 00:00:00 2001 From: Alex Bilger Date: Thu, 8 Aug 2024 14:58:39 +0200 Subject: [PATCH] Score pointer access --- src/BeamAdapter/component/WireBeamInterpolation.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BeamAdapter/component/WireBeamInterpolation.inl b/src/BeamAdapter/component/WireBeamInterpolation.inl index 4bd95cf7..04f0b562 100644 --- a/src/BeamAdapter/component/WireBeamInterpolation.inl +++ b/src/BeamAdapter/component/WireBeamInterpolation.inl @@ -269,10 +269,10 @@ typename T::SPtr WireBeamInterpolation::create(T* tObj, core::object { WireRestShape* _restShape = nullptr; std::string _restShapePath; - bool pathOK = false; - if(arg) + if(arg && context) { + bool pathOK = false; if (arg->getAttribute("WireRestShape",nullptr) != nullptr) { _restShapePath = arg->getAttribute("WireRestShape");