Skip to content

Commit

Permalink
[Resource] Fix NPE in non-Eclipse environment
Browse files Browse the repository at this point in the history
  • Loading branch information
fcoulon committed Jan 25, 2017
1 parent 4b85b7a commit 481f6e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ class MelangeResourceImpl implements MelangeResource
*/
private def String getXmofURI(String languageID) {
val language = Platform.extensionRegistry
.getConfigurationElementsFor("fr.inria.diverse.melange.language")
.findFirst[c|
?.getConfigurationElementsFor("fr.inria.diverse.melange.language")
?.findFirst[c|
c.getAttribute("id") == languageID
]

Expand Down

0 comments on commit 481f6e9

Please sign in to comment.