StreamGroupInfo.Lag can be null by robhop · Pull Request #2902 · StackExchange/StackExchange.Redis
In the special case where consumer group lag is unavailable XINFO GROUPS lag is reported as null from redis.
The Lag property on StreamGroupInfo is long?, so the type is correct.
StreamGroupInfoProcessor.ParseItem parses the value as a long and defaults to 0 not null
This is a bug-fix on that issue, it does contain some code duplication, but that is probably just my skill level.
Make some tests for this, probably not in the right place but that is how it is.