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

Fix coverity CID 88362: Unchecked dynamic_cast

Passing null pointer rubydoc to getParentClassifier, which dereferences
it.

CCBUG:340646
parent fdd39b2f
......@@ -43,6 +43,7 @@ void RubyCodeOperation::updateMethodDeclaration()
{
CodeDocument * doc = getParentDocument();
RubyClassifierCodeDocument * rubydoc = dynamic_cast<RubyClassifierCodeDocument*>(doc);
Q_ASSERT(rubydoc);
UMLClassifier *c = rubydoc->getParentClassifier();
UMLOperation * o = getParentOperation();
bool isInterface = rubydoc->getParentClassifier()->isInterface();
......
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