diff --git a/Server/UAdminHandling.pas b/Server/UAdminHandling.pas index 32fad6f..ab96caf 100644 --- a/Server/UAdminHandling.pas +++ b/Server/UAdminHandling.pas @@ -343,8 +343,11 @@ begin inherited Create($03, 0); FStream.WriteByte($05); FStream.WriteByte(Byte(AStatus)); - FStream.WriteStringNull(AAccount.Name); - if (AStatus = muAdded) or (AStatus = muModified) then + if AAccount <> nil then + FStream.WriteStringNull(AAccount.Name) + else + FStream.WriteStringNull(''); + if ((AStatus = muAdded) or (AStatus = muModified)) and (AAccount <> nil) then begin FStream.WriteByte(Byte(AAccount.AccessLevel)); FStream.WriteByte(AAccount.Regions.Count);