Skip to content
This repository has been archived by the owner on Apr 3, 2018. It is now read-only.

Commit

Permalink
minor error check.
Browse files Browse the repository at this point in the history
  • Loading branch information
bruno-medeiros committed Dec 12, 2014
1 parent 01dd89a commit c931850
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ public void handleOpenDefinitionResult(FindDefinitionResult openDefResult) throw
if(newEditorFilePath == null) {
throw LangCore.createCoreException("no file path provided", null);
}
if(!newEditorFilePath.toFile().exists()) {
throw LangCore.createCoreException("File does not exist.", null);
}

IEditorInput newInput;
if(areEqual(newEditorFilePath, inputPath)) {
newInput = editor.getEditorInput();
Expand Down

0 comments on commit c931850

Please sign in to comment.