load default config when config exists but is empty
This commit is contained in:
@@ -160,6 +160,10 @@ Public Class ConfigManager(Of T)
|
||||
oConfig = _Serializer.Deserialize(oReader)
|
||||
End Using
|
||||
|
||||
If oConfig Is Nothing Then
|
||||
oConfig = Activator.CreateInstance(_Blueprint.GetType)
|
||||
End If
|
||||
|
||||
Return oConfig
|
||||
Catch ex As Exception
|
||||
_Logger.Error(ex)
|
||||
|
||||
Reference in New Issue
Block a user