diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2023-04-30 13:43:23 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2023-04-30 13:43:23 -0400 |
commit | 061b5338568320183eaab0f116fd97b94888f642 (patch) | |
tree | cb934174b8a37753a3be463f0ecd47c97ec47aec /src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs | |
parent | c68e922853560dd192edf63004ea4f8f8faf6fba (diff) | |
download | SMAPI-061b5338568320183eaab0f116fd97b94888f642.tar.gz SMAPI-061b5338568320183eaab0f116fd97b94888f642.tar.bz2 SMAPI-061b5338568320183eaab0f116fd97b94888f642.zip |
fix error deserializing null semantic version
Diffstat (limited to 'src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs')
-rw-r--r-- | src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs b/src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs index 913d54e0..650815b5 100644 --- a/src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs +++ b/src/SMAPI.Toolkit/Serialization/Converters/SemanticVersionConverter.cs @@ -44,6 +44,9 @@ namespace StardewModdingAPI.Toolkit.Serialization.Converters string path = reader.Path; switch (reader.TokenType) { + case JsonToken.Null: + return null; + case JsonToken.StartObject: return this.ReadObject(JObject.Load(reader)); |