Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

error on null location

  • Loading branch information...
commit b974c9c164c51881f7ae16c3bfe960f992508e92 1 parent 5bfb855
@JPMoresmau authored
View
8 ...ll.debug.core/src/net/sf/eclipsefp/haskell/debug/core/internal/launch/AbstractHaskellLaunchDelegate.java
@@ -76,6 +76,12 @@ public void launch( final ILaunchConfiguration configuration,
monitor.beginTask( configuration.getName(), 3 );
final IPath loc =delegate!=null?new Path(delegate.getExecutable()) :
getExecutableLocation( configuration );
+ if (loc==null){
+ String msg = CoreTexts.haskellLaunchDelegate_noExe;
+ String pluginId = HaskellDebugCore.getPluginId();
+ IStatus status = new Status( IStatus.ERROR, pluginId, 0, msg, null );
+ throw new CoreException( status );
+ }
checkCancellation( monitor );
String[] arguments = determineArguments( configuration,delegate,mode );
checkCancellation( monitor );
@@ -146,7 +152,7 @@ protected IStatus run( final IProgressMonitor mon ) {
} else {
while( !process.isTerminated() ) {
try {
- if(monitor!=null && monitor.isCanceled() ) {
+ if(monitor.isCanceled() ) {
process.terminate();
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.