Commit d604c0bf authored by Tobias Hunger's avatar Tobias Hunger Committed by hjk
Browse files

Fix crash



Change-Id: I6e47d358c218da5a5b77c22a47d93117ebcea1d8
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 59debcd0
...@@ -509,7 +509,10 @@ static QString formatToolTip(const IDevice::DeviceInfo &input) ...@@ -509,7 +509,10 @@ static QString formatToolTip(const IDevice::DeviceInfo &input)
void Target::updateDeviceState() void Target::updateDeviceState()
{ {
updateDeviceState(currentDevice()->id()); IDevice::ConstPtr dev = currentDevice();
if (dev.isNull())
return;
updateDeviceState(dev->id());
} }
void Target::updateDeviceState(Core::Id devId) void Target::updateDeviceState(Core::Id devId)
......
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