- Added null check to get string value.
This commit is contained in:
@@ -104,7 +104,7 @@ public partial class SettingEntry<T> : SettingBase, ISettingBase<T>, INetworkSyn
|
||||
|
||||
public override Type GetValueType() => typeof(T);
|
||||
|
||||
public override string GetStringValue() => Value.ToString();
|
||||
public override string GetStringValue() => Value?.ToString() ?? string.Empty;
|
||||
|
||||
public override string GetDefaultStringValue() => DefaultValue.ToString();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user