diff --git a/src/xml/vdomdocument.cpp b/src/xml/vdomdocument.cpp index 549de7d16..237a68df7 100644 --- a/src/xml/vdomdocument.cpp +++ b/src/xml/vdomdocument.cpp @@ -1375,6 +1375,8 @@ void VDomDocument::DecrementReferens(qint64 id) const { Q_ASSERT_X(id > 0, Q_FUNC_INFO, "id <= 0"); VDataTool *tool = tools.value(id); - Q_ASSERT(tool != 0); - tool->decrementReferens(); + if(tool != 0) + { + tool->decrementReferens(); + } }