Skip to content

Instantly share code, notes, and snippets.

@louismrose
Created March 27, 2013 17:06
Show Gist options
  • Save louismrose/5256073 to your computer and use it in GitHub Desktop.
Save louismrose/5256073 to your computer and use it in GitHub Desktop.
// diff --git a/plugins/org.eclipse.epsilon.eol.engine/src/org/eclipse/epsilon/eol/AbstractModule.java b/plugins/org.eclipse.epsilon.eol.engine/src/org/eclipse/epsilon/eol/AbstractModule.java
// index 20c1972..8a98273 100644
//--- a/plugins/org.eclipse.epsilon.eol.engine/src/org/eclipse/epsilon/eol/AbstractModule.java
//+++ b/plugins/org.eclipse.epsilon.eol.engine/src/org/eclipse/epsilon/eol/AbstractModule.java
//@@ -69,7 +69,9 @@ public abstract class AbstractModule extends AbstractModuleElement implements IM
public boolean parse(String code, File file) throws Exception {
this.sourceFile = file;
- this.sourceUri = (file != null) ? file.toURI() : null;
+ if (file != null) {
+ this.sourceUri = file.toURI();
+ }
return parse(sourceUri, new ByteArrayInputStream(code.getBytes()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment