Fix CultLib nullable warnings
This commit is contained in:
parent
e6f448316a
commit
1917bdb025
2 changed files with 5 additions and 4 deletions
|
|
@ -97,7 +97,8 @@ public static class CultDocumentMessagePackSerialization
|
|||
return descriptor.GeneratedPayloadDeserializer(payload);
|
||||
}
|
||||
|
||||
return MessagePackSerializer.Deserialize(type, payload, Options);
|
||||
return MessagePackSerializer.Deserialize(type, payload, Options)
|
||||
?? throw new InvalidOperationException($"MessagePack returned null for Cult document type {type.FullName}.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
Loading…
Reference in a new issue