Fix a nullpointer dereferencing

This commit is contained in:
Dmitri Ovodok 2018-05-20 15:55:45 +03:00
parent 1d27005a2d
commit 7a5af5aabe

View file

@ -1511,7 +1511,7 @@ Element* readArticulation(ChordRest* cr, XmlReader& e)
if (!el) {
qDebug("not handled <%s>", qPrintable(tag.toString()));
}
if (!el->readProperties(e))
if (!el || !el->readProperties(e))
e.unknown();
}
}