FpGdbmiDebugger: fixed crash, accessing nil object

git-svn-id: trunk@45036 -
This commit is contained in:
martin 2014-05-14 15:44:24 +00:00
parent a2286d1c09
commit 1b1ec598f8

View File

@ -1049,8 +1049,11 @@ DebugLn(FPGDBDBG_VERBOSE, [ErrorHandler.ErrorAsString(PasExpr.Error)]);
else
AResText := '{Type=} unknown';
Result := True;
AWatchValue.Value := AResText;
AWatchValue.Validity := ddsValid; // TODO ddsError ?
if AWatchValue <> nil then begin
if not IsWatchValueAlive then exit;
AWatchValue.Value := AResText;
AWatchValue.Validity := ddsValid; // TODO ddsError ?
end;
exit;
end;
end;