Add an assert to check if a pointer is good.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-08-07 15:00:08 +03:00
parent 45e148b606
commit 01dc686827

View File

@ -331,6 +331,7 @@ VContainer VPattern::GetCompleteData() const
} }
const VDataTool *vTool = tools.value(id); const VDataTool *vTool = tools.value(id);
SCASSERT(vTool != nullptr)
VContainer lastData = vTool->getData(); VContainer lastData = vTool->getData();
//Delete special variables if exist //Delete special variables if exist
lastData.RemoveVariable(currentLength); lastData.RemoveVariable(currentLength);