Community
Participate
Working Groups
Created attachment 256324 [details] Example project Given an ecore model containing 3 EPackages : A <>-- B <>-- C A class diagram is defined on each package. B has been controlled (only semantic). (provided project corresponds to this starting state). When I try to control the C package, a NullPointerException occurs and no file has been created. Steps to reproduce : 1) import provided project 2) try to control "C" (both semantic and graphics) => NullPointerException
The problem seems to be with SiriusUncontrolCommand. getParentAirdResource() calls getAirdResourceWithAnalysisOn(EObject) giving the "B" package as a parameter. This method then returns null.
The getAirdResourceWithAnalysisOn(EObject) should never return null: it should recursively fall back to the parent fragment. In the worst case it will return the main session resource found from the resource of the semantic root.
New Gerrit change created: https://git.eclipse.org/r/55207