Fix CultLib nullable warnings

This commit is contained in:
Meta Vens 2026-05-09 11:14:23 +01:00
commit 1917bdb025
2 changed files with 5 additions and 4 deletions

View file

@ -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>