Permalink
Browse files

cabalImplDetails is null in preview

  • Loading branch information...
1 parent 090afff commit 839a2e1e48ef6d8a910cf40a70afa6326216a893 @JPMoresmau committed Feb 27, 2013
View
10 ...sf.eclipsefp.haskell.buildwrapper/src/net/sf/eclipsefp/haskell/buildwrapper/BWFacade.java
@@ -1176,14 +1176,18 @@ private synchronized void addBuildWrapperPath(ProcessBuilder pb){
args.addFirst(bwPath);
args.add("--tempfolder="+DIST_FOLDER);
- args.add("--cabalpath="+cabalImplDetails.getExecutable());
+ if (cabalImplDetails!=null){
+ args.add("--cabalpath="+cabalImplDetails.getExecutable());
+ }
args.add("--cabalfile="+cabalFile);
args.add("--cabalflags="+flags);
for (String s:extraOpts){
args.add("--cabaloption="+s);
}
- for (String s:cabalImplDetails.getOptions()){
- args.add("--cabaloption="+s);
+ if (cabalImplDetails!=null){
+ for (String s:cabalImplDetails.getOptions()){
+ args.add("--cabaloption="+s);
+ }
}
ProcessBuilder pb=new ProcessBuilder();
pb.directory(workingDir);

0 comments on commit 839a2e1

Please sign in to comment.