[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Sep 18 20:41:34 UTC 2005
SVN commit 461903 by okellogg:
syncToParent(): Avoid dereferencing a NULL pointer.
M +2 -0 codeclassfielddeclarationblock.cpp
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codeclassfielddeclarationblock.cpp #461902:461903
@@ -144,6 +144,8 @@
if(!(getParentClassField()->parentIsAttribute()))
{
UMLRole * parent = (UMLRole*)getParentObject();
+ if (parent == NULL)
+ return;
if(parent->getName().isEmpty())
{
getComment()->setWriteOutText(false);
More information about the umbrello-devel
mailing list