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

Crash fix.

Calling QList::last() on an empty list raises a seg fault.
parent 9dbc282c
......@@ -1301,7 +1301,7 @@ bool UMLClassifier::hasAccessorMethods()
*/
bool UMLClassifier::hasOperationMethods()
{
return getOpList().last() ? true : false;
return getOpList().count() > 0 ? true : false;
}
/**
......
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