Created
March 27, 2013 17:06
-
-
Save louismrose/5256073 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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