Permalink
Browse files

defensive on cabal executable

  • Loading branch information...
JPMoresmau committed Sep 28, 2012
1 parent 3bd8af7 commit d4bc34dbc53bc09556c79c6d0e31da2b13b1ea01
@@ -95,6 +95,10 @@ public String getAdditionalProposalInfo() {
@Override
public void apply( final IDocument arg0 ) {
final String cabalExecutable=CabalImplementationManager.getCabalExecutable();
+ if (cabalExecutable==null){
+ HaskellUIPlugin.log( UITexts.noCabalImplementationForInstall_error, IStatus.ERROR );
+ return;
+ }
final List<String> commands = new ArrayList<String>();
commands.add( cabalExecutable );
commands.add("install");
Oops, something went wrong.

0 comments on commit d4bc34d

Please sign in to comment.