Community
Participate
Working Groups
Build Identifier: M20090917-0800 I try to compare two evolution steps of the same model. This model is available as textual representation (EMFText). When calling doContentMatch of the MatchService, internally getCommonContentType from EclipseModelUtils will be invoked. I guess, because of being a textual representation of the model, ResourcesPlugin.getWorkspace().getRoot().getFile(modelPath).getContentDescription() returns null and that's why a NPE is thrown. Some null checks are needed. Reproducible: Always Steps to Reproduce: Happens every time I try to compare two models whose URIs point to a textual representation.
Created attachment 164019 [details] null check patch for EclipseModelUtils I added two null checks in the method EclipseModelUtilsgetCommonContentType(URI... uris)
Thanks, the fix for this will be accessible in M7.