diff --git a/bundles/org.eclipse.sirius.emfjson/src/main/java/org/eclipse/sirius/emfjson/resource/JsonResourceImpl.java b/bundles/org.eclipse.sirius.emfjson/src/main/java/org/eclipse/sirius/emfjson/resource/JsonResourceImpl.java index d93e34c..11c0d2f 100644 --- a/bundles/org.eclipse.sirius.emfjson/src/main/java/org/eclipse/sirius/emfjson/resource/JsonResourceImpl.java +++ b/bundles/org.eclipse.sirius.emfjson/src/main/java/org/eclipse/sirius/emfjson/resource/JsonResourceImpl.java @@ -444,7 +444,11 @@ public void setID(EObject eObject, String id) { @Override protected EObject getEObjectByID(String id) { if (this.useID) { - return this.idToEObjectMap.get(id); + EObject result = this.idToEObjectMap.get(id); + if (result == null && this.intrinsicIDToEObjectMap != null) { + result = this.intrinsicIDToEObjectMap.get(id); + } + return result; } return super.getEObjectByID(id); }