Summary: | Importing java files that reference their own class name (eg. singleton objects) crashes umbrello | ||
---|---|---|---|
Product: | [Applications] umbrello | Reporter: | Clinton Grant <clintgr> |
Component: | general | Assignee: | Oliver Kellogg <okellogg> |
Status: | RESOLVED WORKSFORME | ||
Severity: | crash | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Clinton Grant
2006-07-13 05:32:18 UTC
SVN commit 562838 by okellogg: parseStmt(): Check for m_klass being NULL before dereferencing it. Thanks to Clinton Grant for spotting this. CCBUG:130735 M +1 -1 javaimport.cpp --- branches/KDE/3.5/kdesdk/umbrello/umbrello/javaimport.cpp #562837:562838 @@ -286,7 +286,7 @@ } QString typeName = joinTypename(); QString name; - if (typeName == m_klass->getName()) { + if (m_klass != NULL && typeName == m_klass->getName()) { // Constructor. name = typeName; typeName = QString::null; Works for me now, probably due to commit 562848 (see bug 130792) |