From fec2f4c39e2ec21d3b7d21c033e66da4e922fcc7 Mon Sep 17 00:00:00 2001 From: martin Date: Mon, 10 Dec 2018 21:10:07 +0000 Subject: [PATCH] FpDebug: nil check, in case of corrupted debug info git-svn-id: trunk@59779 - --- components/fpdebug/fpdbgdwarf.pas | 1 + 1 file changed, 1 insertion(+) diff --git a/components/fpdebug/fpdbgdwarf.pas b/components/fpdebug/fpdbgdwarf.pas index 85c2da050a..8d5adf92e1 100644 --- a/components/fpdebug/fpdbgdwarf.pas +++ b/components/fpdebug/fpdbgdwarf.pas @@ -1013,6 +1013,7 @@ begin if ASym.SymbolType = stValue then begin Result := ASym.Value; + if Result <> nil then Result.AddReference{$IFDEF WITH_REFCOUNT_DEBUG}(@FlastResult, 'FindSymbol'){$ENDIF}; end else begin