Commit 371ad563 authored by Tobias Hunger's avatar Tobias Hunger
Browse files

DebuggerKitInformation: Handle null QVariants

Change-Id: Iac2b3fde2d7357d8c00db05ed4ad39e6b5a861e9
Reviewed-by: default avatarEike Ziller <>
Reviewed-by: default avatarFriedemann Kleint <>
parent d41e0169
......@@ -296,6 +296,8 @@ static const char binaryKeyC[] = "Binary";
DebuggerKitInformation::DebuggerItem DebuggerKitInformation::variantToItem(const QVariant &v)
DebuggerItem result;
if (v.isNull())
return result;
if (v.type() == QVariant::String) { // Convert legacy config items, remove later.
const QString binary = v.toString();
result.binary = Utils::FileName::fromString(binary);
Supports Markdown
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