Skip to content

Commit

Permalink
defensive
Browse files Browse the repository at this point in the history
  • Loading branch information
JPMoresmau committed Feb 1, 2013
1 parent 4080aa6 commit 2239f51
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ public static String computeProblemInfo( final ITextViewer textViewer, final IRe
}

protected String computeThingAtPoint( final ITextViewer textViewer, final IRegion hoverRegion,final boolean html ) {
if (editor==null){
return null;
}
IFile file = editor.findFile();
if (file != null) {
try {
Expand Down

0 comments on commit 2239f51

Please sign in to comment.