Skip to content

Commit

Permalink
coderabbitai: enhancement to throw exception for null
Browse files Browse the repository at this point in the history
  • Loading branch information
alirana01 committed Sep 7, 2023
1 parent 4883122 commit 1f4ffea
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ public Object execute(ExecutionEvent event) throws ExecutionException
Logger.log(UIPlugin.getDefault(), "Failed to initialize GcovFileView: " + e.getMessage(), e);
}
}
else
{
throw new ExecutionException("Active page cannot be retrieved");
}
}
else
{
throw new ExecutionException("Active workbench window cannot be retrieved");
}
return null;
}
Expand Down

0 comments on commit 1f4ffea

Please sign in to comment.