Commit 91ad6518 authored by Nikita Baryshnikov's avatar Nikita Baryshnikov

ProjectExplorerPlugin: remove runConfiguration check

against null pointer

Change-Id: I91760f7aeaadf596ef759f56f8374dabab1dd8bf
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 23e46b2f
......@@ -659,7 +659,7 @@ bool ProjectExplorerPlugin::initialize(const QStringList &arguments, QString *er
const IDevice::ConstPtr device = runnable.as<StandardRunnable>().device;
if (device && device->type() == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE)
return true;
Target *target = runConfiguration ? runConfiguration->target() : nullptr;
Target *target = runConfiguration->target();
Kit *kit = target ? target->kit() : nullptr;
return DeviceTypeKitInformation::deviceTypeId(kit) == ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment