Skip to content

Commit

Permalink
Merge pull request #156 from alxbilger/securepointeraccess
Browse files Browse the repository at this point in the history
Score pointer access
  • Loading branch information
hugtalbot authored Aug 8, 2024
2 parents d966a31 + 5f6c297 commit da3aaed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BeamAdapter/component/WireBeamInterpolation.inl
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,10 @@ typename T::SPtr WireBeamInterpolation<DataTypes>::create(T* tObj, core::object
{
WireRestShape<DataTypes>* _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");
Expand Down

0 comments on commit da3aaed

Please sign in to comment.