Commit 85798240 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Fix coverity CID 88364: Unchecked dynamic_cast

Passing null pointer ddoc to getParentClassifier, which dereferences it.

CCBUG:340646
parent be41ee4a
......@@ -40,6 +40,7 @@ void DCodeOperation::updateMethodDeclaration()
{
CodeDocument * doc = getParentDocument();
DClassifierCodeDocument * ddoc = dynamic_cast<DClassifierCodeDocument*>(doc);
Q_ASSERT(ddoc);
UMLOperation * o = getParentOperation();
bool isInterface = ddoc->getParentClassifier()->isInterface();
QString endLine = getNewLineEndingChars();
......
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