Security identifier (SID) is empty when logging in as local/machine domain user

LoginSettings ls = LoginSettingsCache.GetLoginSettings(EnvironmentManager.Instance.MasterSite);
var sid = ls.UserIdentity; // Works with domain user, not machine user

As the code says, when logging in as a domain user the sid is valid but not when logging in as a local user. Why is this and how can I find out the SID?

Milestone Development will start an investigation.

I should add that the login was done from a domain connected PC, connecting to a non-domain machine with Milestone

Milestone Development fixed this issue. It will be solved in 2020 R2.

When is the next release due? Is it possible to release a hotfix so I can continue my development?

Please see this link and download the hotfix here -

https://supportcommunity.milestonesys.com/s/article/XProtect-2020-R1-cumulative-patch-installers?language=en_US