diff --git a/src/app/valentina/xml/vpattern.cpp b/src/app/valentina/xml/vpattern.cpp index 808c2b268..c75fbd324 100644 --- a/src/app/valentina/xml/vpattern.cpp +++ b/src/app/valentina/xml/vpattern.cpp @@ -331,6 +331,7 @@ VContainer VPattern::GetCompleteData() const } const VDataTool *vTool = tools.value(id); + SCASSERT(vTool != nullptr) VContainer lastData = vTool->getData(); //Delete special variables if exist lastData.RemoveVariable(currentLength);