Skip to content

Commit

Permalink
Fix access violation
Browse files Browse the repository at this point in the history
  • Loading branch information
Grahame Grieve committed Feb 11, 2025
1 parent 92d6e5e commit 0a0ad0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/search_base.pas
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function TSearchParser.hasParam(name: String; out value : string): boolean;
result := true;
value := '';
for sp in FParams do
if (sp.FIndex.Name = name) then
if (sp.FIndex <> nil) and (sp.FIndex.Name = name) then
begin
value := sp.value;
exit(true);
Expand Down

0 comments on commit 0a0ad0c

Please sign in to comment.