mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +02:00
Fix NPE
This commit is contained in:
parent
4c0d34ec50
commit
4d146140b3
1 changed files with 5 additions and 1 deletions
|
@ -92,7 +92,11 @@ abstract public class AbstractCLaunchDelegate extends LaunchConfigurationDelegat
|
|||
}
|
||||
} catch (CoreException e) {
|
||||
}
|
||||
return DebugPlugin.getDefault().getLaunchManager().getEnvironment(config);
|
||||
String[] array = DebugPlugin.getDefault().getLaunchManager().getEnvironment(config);
|
||||
if (array == null) {
|
||||
return new String[0];
|
||||
}
|
||||
return array;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue