Commit 0d348a57 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Guard access to UMLfolder::m_diagrams elements to avoid crashes on application shutdown.

This crash happens on running umbrello from command line e.g. umbrello --export svg <xmifile>.

CCBUG:376939
parent 6939346e
......@@ -154,7 +154,7 @@ void UMLFolder::activateViews()
UMLView *UMLFolder::findView(Uml::ID::Type id)
{
foreach (UMLView* v, m_diagrams) {
if (v->umlScene()->ID() == id) {
if (v && v->umlScene() && v->umlScene()->ID() == id) {
return v;
}
}
......
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