Summary: | Umbrello 1.5.8 crashes when Generate code function is used. | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | German <germanach> |
Component: | general | Assignee: | Oliver Kellogg <okellogg> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | okellogg, ralf.habacker |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/umbrello/555f2fb306d41c1bc9a4f29da79c420efd7ecdd0 | Version Fixed In: | 4.13.97 |
Sentry Crash Report: | |||
Attachments: |
To test crash generating all code with umbrello 1.5.8
XMI file purged of artifacts Crash of current git master on loading attachment 68812 |
Description
German
2010-11-12 16:53:00 UTC
Created attachment 53367 [details]
To test crash generating all code with umbrello 1.5.8
To test crash generating all code with umbrello 1.5.8
Created attachment 68812 [details] XMI file purged of artifacts This is an Umbrello problem, deletion does not always work as it should. If you delete a class that has asociations, the associations tend to remain (although the class is deleted.) When you reload the XMI file, Umbrello will detect the dangling association ends and will create an artificial datatype named "undef" so that the association ends point to some defined object. See also https://bugs.kde.org/show_bug.cgi?id=293042#c6 ff. In the attached file, I have cleaned out the associations that have the "undef" object as an end point. Thus the code generation works. *** This bug has been marked as a duplicate of bug 293042 *** Created attachment 87940 [details] Crash of current git master on loading attachment 68812 [details] Git commit 555f2fb306d41c1bc9a4f29da79c420efd7ecdd0 by Oliver Kellogg. Committed on 25/07/2014 at 04:59. Pushed by okellogg into branch 'master'. umbrello/codegenerators/java/javacodeaccessormethod.cpp - In function updateMethodDeclaration(), if javafield->getFieldName() returns empty then abort update with error. umbrello/codegenerators/codegen_utils.cpp function capitalizeFirstLetter() - Do not attempt accesses into string when empty. M +2 -0 umbrello/codegenerators/codegen_utils.cpp M +4 -0 umbrello/codegenerators/java/javacodeaccessormethod.cpp http://commits.kde.org/umbrello/555f2fb306d41c1bc9a4f29da79c420efd7ecdd0 |