Skip to content

Commit ec247fb

Browse files
authored
Fix crash if pointer is null (#145)
1 parent 1c78f22 commit ec247fb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/BeamAdapter/component/WireBeamInterpolation.inl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ typename T::SPtr WireBeamInterpolation<DataTypes>::create(T* tObj, core::object
247247
context->findLinkDest(_restShape, _restShapePath, nullptr);
248248

249249
if(_restShape == nullptr)
250-
msg_warning(context) << " ("<< tObj->getClassName() <<") : WireRestShape attribute not set correctly, WireBeamInterpolation will be constructed with a default WireRestShape" ;
250+
msg_warning(context) << " ("<< WireBeamInterpolation<DataTypes>::GetClass()->className <<") : WireRestShape attribute not set correctly, WireBeamInterpolation will be constructed with a default WireRestShape" ;
251251
else
252252
pathOK = true;
253253
}
254254
else
255-
msg_error(context) << " (" << tObj->getClassName() <<") : WireRestShape attribute not used, WireBeamInterpolation will be constructed with a default WireRestShape" ;
255+
msg_error(context) << " (" << WireBeamInterpolation<DataTypes>::GetClass()->className <<") : WireRestShape attribute not used, WireBeamInterpolation will be constructed with a default WireRestShape" ;
256256

257257

258258
if (!pathOK)

0 commit comments

Comments
 (0)