Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -164,7 +164,7 @@ private RequireResult tryToRequireFile(String path, Node currentNode) throws IOE

public void setMainScriptSource(Source source) {
this.mainScriptSource = source;
if (!source.getPath().equals("-e")) {
if (source.getPath() != null && !source.getPath().equals("-e")) {
this.mainScriptFullPath = expandPath(context, source.getPath());
}
}

0 comments on commit 790ff60

Please sign in to comment.