Skip to content

Commit 14ecae5

Browse files
committed
ST6RI-178 Fixed erroneous root elements
1 parent f39fbda commit 14ecae5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

org.omg.sysml/src/org/omg/sysml/util/traversal/facade/impl/JsonElementProcessingFacade.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ public void postProcess(Element element) {
264264
org.omg.sysml.model.Element apiModelElement = this.createApiModelElement(element);
265265
UUID id = UUID.fromString(apiModelElement.get("@id").toString());
266266

267-
if (element.getOwningNamespace() == null || element.isLibraryElement()) {
267+
if (element.eContainer() == null || element.isLibraryElement()) {
268268
this.getLocalModel().addModelRoot(id, apiModelElement);
269269
}
270270
this.getLocalModel().addModelElement(id, apiModelElement);;

0 commit comments

Comments
 (0)