diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp
index 5286ec03834242d0bf10f5c3126928f68171d6c7..bd38e8c40dc47c19873a682abffb453f5bc2e214 100644
--- a/src/plugins/projectexplorer/projectexplorer.cpp
+++ b/src/plugins/projectexplorer/projectexplorer.cpp
@@ -1315,6 +1315,8 @@ void ProjectExplorerPlugin::executeRunConfiguration(RunConfiguration *runConfigu
         emit aboutToExecuteProject(runConfiguration->target()->project(), runMode);
 
         RunControl *control = runControlFactory->create(runConfiguration, runMode);
+        if (!control)
+            return;
         startRunControl(control, runMode);
     }
 }