You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function TBaseJSON<T, Typ>.GetData(Key: Typ): IJSONAncestor;
var
P: IJsonPair;
begin
if Self.InheritsFrom(TSuperObject) then begin
if Assigned(FInterface) then begin // <--------- this one
P := TJSONObject(FInterface).Get(PString(@Key)^);
if Assigned(P) then begin
Result := P.JsonValue
end else begin
Result := Nil;
end;
end else begin
Result := Nil;
end;
end else begin
if Self.InheritsFrom(TSuperArray) then begin
// Maybe we need to check for Assigned(FInterface) here too?
Result := TJSONArray(FInterface).Get(PInteger(@Key)^);
end;
end;
end;
The text was updated successfully, but these errors were encountered:
Fix:
The text was updated successfully, but these errors were encountered: