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

Fix coverity CID 88361: Unchecked dynamic_cast

Passing null pointer javadoc to getParentClassifier, which dereferences
it.

CCBUG:340646
parent ccfd92ec
......@@ -38,6 +38,7 @@ void JavaCodeOperation::updateMethodDeclaration()
{
CodeDocument * doc = getParentDocument();
JavaClassifierCodeDocument * javadoc = dynamic_cast<JavaClassifierCodeDocument*>(doc);
Q_ASSERT(javadoc);
UMLOperation * o = getParentOperation();
bool isInterface = javadoc->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