diff --git a/src/plugins/debugger/debuggerdialogs.cpp b/src/plugins/debugger/debuggerdialogs.cpp index ab1f138ab84..62afe1c6e65 100644 --- a/src/plugins/debugger/debuggerdialogs.cpp +++ b/src/plugins/debugger/debuggerdialogs.cpp @@ -423,8 +423,8 @@ bool StartApplicationDialog::run(QWidget *parent, QSettings *settings, DebuggerS sp->serverStartScript = newParameters.serverStartScript; sp->debugInfoLocation = newParameters.debugInfoLocation; - bool isLocal = DeviceKitInformation::device(kit)->type() - == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE; + IDevice::ConstPtr dev = DeviceKitInformation::device(kit); + bool isLocal = !dev || (dev->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE); if (!attachRemote) sp->startMode = isLocal ? StartExternal : StartRemoteProcess; return true;