From 0fcac5b98207b7cce30408a3d42f0effe5ab567c Mon Sep 17 00:00:00 2001 From: Alex Bilger Date: Mon, 6 May 2024 11:19:16 +0200 Subject: [PATCH] Fix crash if pointer is null --- 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 5f5774cc6..af3f7397f 100644 --- a/src/BeamAdapter/component/WireBeamInterpolation.inl +++ b/src/BeamAdapter/component/WireBeamInterpolation.inl @@ -247,12 +247,12 @@ typename T::SPtr WireBeamInterpolation::create(T* tObj, core::object context->findLinkDest(_restShape, _restShapePath, nullptr); if(_restShape == nullptr) - msg_warning(context) << " ("<< tObj->getClassName() <<") : WireRestShape attribute not set correctly, WireBeamInterpolation will be constructed with a default WireRestShape" ; + msg_warning(context) << " ("<< WireBeamInterpolation::GetClass()->className <<") : WireRestShape attribute not set correctly, WireBeamInterpolation will be constructed with a default WireRestShape" ; else pathOK = true; } else - msg_error(context) << " (" << tObj->getClassName() <<") : WireRestShape attribute not used, WireBeamInterpolation will be constructed with a default WireRestShape" ; + msg_error(context) << " (" << WireBeamInterpolation::GetClass()->className <<") : WireRestShape attribute not used, WireBeamInterpolation will be constructed with a default WireRestShape" ; if (!pathOK)