mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 22:48:15 +02:00
IdeDebugger: Don't assert address of empty string. Exit early.
This commit is contained in:
parent
515752eac7
commit
55c94bee7b
@ -577,10 +577,13 @@ function TStringBuilderPart.GetFullString: String;
|
|||||||
var
|
var
|
||||||
p: PChar;
|
p: PChar;
|
||||||
begin
|
begin
|
||||||
|
Result := '';
|
||||||
if FData = nil then
|
if FData = nil then
|
||||||
exit('');
|
exit();
|
||||||
if FType = sbfString then
|
if FType = sbfString then
|
||||||
exit(string(FData));
|
exit(string(FData));
|
||||||
|
if PHeader(FData)^.FTotalLen = 0 then
|
||||||
|
exit;
|
||||||
|
|
||||||
SetLength(Result, PHeader(FData)^.FTotalLen);
|
SetLength(Result, PHeader(FData)^.FTotalLen);
|
||||||
p := pchar(Result);
|
p := pchar(Result);
|
||||||
|
Loading…
Reference in New Issue
Block a user