Permalink
Browse files

defensive

  • Loading branch information...
1 parent 4080aa6 commit 2239f51edf588ae123f575d3e7040b2e2cecfc16 @JPMoresmau committed Feb 1, 2013
View
3 ...haskell.ui/src/net/sf/eclipsefp/haskell/ui/internal/editors/haskell/HaskellTextHover.java
@@ -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 {

0 comments on commit 2239f51

Please sign in to comment.