Community
Participate
Working Groups
It is possible for a model's baseLocation to be null (for example when copying the model), which can cause assertion failures when generating Paths used in checking for external schema locations.
Created attachment 192675 [details] patch
Wouldn't it be better to also copy the base location, given that the IDs have to be different?
Created attachment 192680 [details] patch with doc update copyModelForEdit, maybe. But createNewInstance is still capable of setting the baseLocation to null. I've updated the doc to reflect this and left the null checks.
Thanks for the review. Code checked in.