mirror of https://github.com/ppy/osu
Fix parsing of null configuration elements
This commit is contained in:
parent
04c2c33c64
commit
f655cd4516
|
@ -77,7 +77,8 @@ public override IBindable<TValue> GetConfig<TLookup, TValue>(TLookup lookup)
|
|||
val = val == "1" ? "true" : "false";
|
||||
|
||||
var bindable = new Bindable<TValue>();
|
||||
bindable.Parse(val);
|
||||
if (val != null)
|
||||
bindable.Parse(val);
|
||||
return bindable;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue