From c067bd336e32db262f68deee30ea521f16e8ba6f Mon Sep 17 00:00:00 2001 From: Martin Date: Sat, 17 May 2025 12:31:36 +0200 Subject: [PATCH] FpDebug: fix handling errors in watch result. In case of error an incorrect data type may be given. WatchResData would not be set (not to value, nor error). Issue #41646 (cherry picked from commit 0dfc1da04cf666a0a541b086468103a87cc356ce) --- components/fpdebug/fpwatchresultdata.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/fpdebug/fpwatchresultdata.pas b/components/fpdebug/fpwatchresultdata.pas index 229bdc102a..5bb9cf557c 100644 --- a/components/fpdebug/fpwatchresultdata.pas +++ b/components/fpdebug/fpwatchresultdata.pas @@ -886,7 +886,7 @@ begin //skRegister: ; //skAddress: ; else begin - if IsError(AnFpValue.LastError) then // will be handled after the case + if not IsError(AnFpValue.LastError) then // will be handled after the case AnResData.CreateError('Unknown data'); Result := True; end;