Commit b4d7c491 authored by luyikei's avatar luyikei

Settings: Fix segfault when SettingValue is null

parent b44cc94f
......@@ -169,7 +169,10 @@ Settings::loadJsonFrom( const QJsonObject &object )
SettingValue* val = value( it.key() );
if ( val == nullptr )
{
vlmcWarning() << "Loaded invalid project setting:" << it.key();
continue;
}
if ( val->type() == SettingValue::ByteArray )
val->set( QByteArray::fromBase64( (*it).toVariant().toByteArray() ) );
......
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