diff --git a/launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/internal/docker/launcher/LaunchShortcut.java b/launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/internal/docker/launcher/LaunchShortcut.java index 21eb1de019a..64cd3a289d8 100644 --- a/launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/internal/docker/launcher/LaunchShortcut.java +++ b/launch/org.eclipse.cdt.docker.launcher/src/org/eclipse/cdt/internal/docker/launcher/LaunchShortcut.java @@ -299,7 +299,8 @@ public class LaunchShortcut implements ILaunchShortcut { // if we have an active configuration with container // build properties, make sure they match, otherwise // add the launch config as a candidate - if (connectionUri.equals(config.getAttribute( + if (connectionUri != null + && connectionUri.equals(config.getAttribute( ILaunchConstants.ATTR_CONNECTION_URI, connectionUri))) { if (imageName.equals(config.getAttribute(