[Uml-devel] [Bug 126262] Crashes while loading file (Advanced Code Generators enabled)
Oliver Kellogg
okellogg at users.sourceforge.net
Sun Mar 25 19:10:04 UTC 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=126262
------- Additional Comments From okellogg users sourceforge net 2007-03-25 21:10 -------
Commit 646451:
In CPPSourceCodeAccessorMethod::updateContent(), substituting
CPPCodeClassField * cppfield = (CPPCodeClassField*)parentField;
by
CPPCodeClassField * cppfield = dynamic_cast<CPPCodeClassField*>(parentField);
reveals that the parentField is not of the type expected (cppfield is NULL.)
The stack trace thus becomes:
#1 0x082d9109 in CPPCodeClassField::getFieldName (this=0x0)
at codegenerators/cppcodeclassfield.cpp:57
#2 0x082dd1fa in CPPSourceCodeAccessorMethod::updateContent (this=0x89ef0d0)
at codegenerators/cppsourcecodeaccessormethod.cpp:62
#3 0x082dcf20 in CPPSourceCodeAccessorMethod::update (this=0x89ef0d0)
at codegenerators/cppsourcecodeaccessormethod.cpp:45
#4 0x082c3088 in CodeGenFactory::newCodeAccessorMethod (ccd=0x89e7ba8, cf=0x89efbd0, type=GET)
at codegenerators/codegenfactory.cpp:280
#5 0x08152166 in CodeClassField::initAccessorMethods (this=0x89efbd0) at codeclassfield.cpp:427
#6 0x08152846 in CodeClassField::initFields (this=0x89efbd0) at codeclassfield.cpp:603
#7 0x081509e8 in CodeClassField (this=0x89efbd0, doc=0x89e7ba8, attrib=0x8954cf8)
at codeclassfield.cpp:49
#8 0x082d8fd2 in CPPCodeClassField (this=0x89efbd0, parentDoc=0x89e7ba8, attrib=0x8954cf8)
at codegenerators/cppcodeclassfield.cpp:43
#9 0x082c2e3d in CodeGenFactory::newCodeClassField (ccd=0x89e7ba8, at=0x8954cf8)
at codegenerators/codegenfactory.cpp:234
#10 0x08147e2b in ClassifierCodeDocument::initCodeClassFields (this=0x89e7ba8)
at classifiercodedocument.cpp:497
#11 0x082d78c6 in CPPCodeGenerator::newClassifierCodeDocument (this=0x89e7320, classifier=0x8954bf0)
at codegenerators/cppcodegenerator.cpp:249
#12 0x082d79ff in CPPCodeGenerator::initFromParentDocument (this=0x89e7320)
at codegenerators/cppcodegenerator.cpp:285
#13 0x082c27fb in CodeGenFactory::createObject (pl=pl_Cpp) at codegenerators/codegenfactory.cpp:176
#14 0x081b7109 in UMLApp::setGenerator (this=0x84cdd08, pl=pl_Cpp) at uml.cpp:1237
#15 0x081c6dc4 in UMLDoc::loadExtensionsFromXMI (this=0x84dd688, node= 0xbfffe970)
at umldoc.cpp:1782
#16 0x081c488c in UMLDoc::loadFromXMI (this=0x84dd688, file= 0xbfffeb90, encode=1)
at umldoc.cpp:1474
More information about the umbrello-devel
mailing list