mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-07 05:08:06 +02:00
* Correctly initialize some variables to avoid AV
This commit is contained in:
parent
0c3f7bb664
commit
b6b3cc88f8
@ -169,7 +169,7 @@ end;
|
||||
|
||||
function TSQLDBRestDBHandler.GetString(aString: TRestStringProperty): UTF8String;
|
||||
begin
|
||||
DefaultGetString(FStrings, aString);
|
||||
Result:=DefaultGetString(FStrings, aString);
|
||||
end;
|
||||
|
||||
class function TSQLDBRestDBHandler.DefaultGetString(aConfig : TRestStringsConfig; aString: TRestStringProperty): UTF8String;
|
||||
@ -790,7 +790,7 @@ begin
|
||||
Q.UsePrimaryKeyAsKey:=False;
|
||||
FillParams(roGet,Q.Params,WhereFilterList);
|
||||
if Not SpecialResource then
|
||||
IO.Resource.CheckParams(IO.RestContext,roPost,Q.Params);
|
||||
IO.Resource.CheckParams(IO.RestContext,roGet,Q.Params);
|
||||
Result:=Q;
|
||||
except
|
||||
Q.Free;
|
||||
|
@ -121,7 +121,9 @@ Var
|
||||
D : TJSONData;
|
||||
|
||||
begin
|
||||
D:=(FJSON as TJSONObject).Find(aName);
|
||||
D:=Nil;
|
||||
if Assigned(FJSON) then
|
||||
D:=(FJSON as TJSONObject).Find(aName);
|
||||
if D<>nil then
|
||||
Result:=D.Clone
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user