Skip to content

Commit

Permalink
Better handle standalone setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Degueule committed Feb 22, 2015
1 parent 7242372 commit 93ef917
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -387,7 +387,7 @@ class MetamodelExtensions
val res = mm.eResource

return
if (res !== null)
if (res !== null && res.URI.toPlatformString(true) !== null)
ResourcesPlugin.workspace.root.getFile(new Path(res.URI.toPlatformString(true))).project
else null
} catch (IllegalStateException e) {
Expand Down

0 comments on commit 93ef917

Please sign in to comment.