FpDebug: accept PChar(nil) as string

git-svn-id: trunk@62025 -
This commit is contained in:
martin 2019-10-10 21:30:14 +00:00
parent 51b18e32f4
commit 61e152cc7d

View File

@ -2008,7 +2008,7 @@ begin
t := TypeInfo;
if (t <> nil) then t := t.TypeInfo;
if (t <> nil) and (t.Kind = skChar) and IsReadableMem(GetDerefAddress) then begin // pchar
if (t <> nil) and (t.Kind = skChar) and IsValidLoc(GetDerefAddress) then begin // pchar
if not t.ReadSize(nil, Size) then
Size := ZeroSize;
case Size.Size of