Commit 288fc912 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Check against zero namespace pointer.

CCBUG:330018
parent 8495de1a
......@@ -140,7 +140,8 @@ void CppTree2Uml::parseTypedef(TypedefAST* ast)
if (type.contains(QLatin1Char('*')) || isDatatype) {
UMLObject *inner = 0;
if (m_currentNamespace[m_nsCnt]->baseType() == UMLObject::ot_Class &&
if (m_currentNamespace[m_nsCnt] &&
m_currentNamespace[m_nsCnt]->baseType() == UMLObject::ot_Class &&
typeId == m_currentNamespace[m_nsCnt]->name())
inner = m_currentNamespace[m_nsCnt];
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment