[umbrello-devel] [umbrello] [Bug 341709] Crash while importing C++ code from existing project
    Oliver Kellogg 
    okellogg at users.sourceforge.net
       
    Thu Dec 11 18:29:43 UTC 2014
    
    
  
https://bugs.kde.org/show_bug.cgi?id=341709
Oliver Kellogg <okellogg at users.sourceforge.net> changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |okellogg at users.sourceforge.
                   |                            |net
--- Comment #13 from Oliver Kellogg <okellogg at users.sourceforge.net> ---
(In reply to Ralf Habacker from comment #11)
> There is a surprising dynamic_cast problem inModel_Utils::findUMLObject()
> 
> At line 202 there is an access to the package child objects:
> 202:          UMLObjectList objectsInCurrentScope = pkg->containedObjects();
> [...]
> In the crash case the package is an UMLAssociation instance, which does
> support objects.
I don't understand: UMLAssociation is not derived from UMLPackage.
In fact, in line 179:
        if (pkg == NULL || pkg->baseType() == UMLObject::ot_Association)
            pkg = currentObj->umlPackage();
the RHS of the "||" should never become true (?)
-- 
You are receiving this mail because:
You are the assignee for the bug.
Make the world a better place. Donate to our year end fundraiser https://www.kde.org/fundraisers/yearend2014/
    
    
More information about the umbrello-devel
mailing list