1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-05 16:15:25 +02:00

Bug 469522 - [Launch bar] An internal error occurred during: "Stopping

launches" (NPE)

Change-Id: I3d3af8182680a39cccc734015927235bb4bcc227
Signed-off-by: Alena Laskavaia <elaskavaia.cdt@gmail.com>
This commit is contained in:
Alena Laskavaia 2015-06-22 10:05:09 -04:00 committed by Elena Laskavaia
parent 329f20b8c9
commit a637a8a4ef

View file

@ -55,7 +55,7 @@ public class StopActiveCommandHandler extends AbstractHandler {
ILaunchConfiguration activeConfig = launchBarManager.getActiveLaunchConfiguration();
for (ILaunch launch : activeLaunches) {
ILaunchConfiguration launchConfig = launch.getLaunchConfiguration();
if (launchConfig.equals(activeConfig)) {
if (launchConfig != null && launchConfig.equals(activeConfig)) {
launch.terminate();
} else if (launchConfig instanceof ILaunchConfigurationWorkingCopy) {
// There are evil delegates that use a working copy for scratch storage