Commit c036a0c0 authored by Ralf Habacker's avatar Ralf Habacker

Check return value from dynamic_cast against zero in ClassGeneralPage constructor.

CCBUG:368282
parent 3e9f089d
......@@ -102,7 +102,7 @@ ClassGeneralPage::ClassGeneralPage(UMLDoc* d, QWidget* parent, UMLObject* o)
int row = 2;
UMLClassifier *c = m_pObject->asUMLClassifier();
if (c->isReference() && c->originType()) {
if (c && c->isReference() && c->originType()) {
QLabel *label = new QLabel(i18n("Reference:"), this);
m_pNameLayout->addWidget(label, row, 0);
QLabel *reference = new QLabel(c->originType()->name(), this);
......
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