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

Fix coverity CID 88416: Dereference before null check

Null-checking at suggests that it may be null, but it has already been
dereferenced on all paths leading to the check.

CCBUG:340646
parent 3fb0142d
......@@ -307,7 +307,7 @@ void PascalWriter::writeClass(UMLClassifier *c)
// continue;
pas << indent() << cleanName(at->name()) << " : "
<< at->getTypeName();
if (at && !at->getInitialValue().isEmpty())
if (!at->getInitialValue().isEmpty())
pas << " := " << at->getInitialValue();
pas << ";" << m_endl;
}
......
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