LCL, fix dbgrid picklist crash, issue #12797

git-svn-id: trunk@17840 -
This commit is contained in:
jesus 2008-12-15 15:01:59 +00:00
parent 6cb56909ad
commit ed25b4f6f3

View File

@ -3076,7 +3076,7 @@ var
p: PLookupListRec;
begin
Result := inherited GetPickList;
if Field.Lookup and Field.LookupCache then begin
if (Field<>nil) and Field.Lookup and Field.LookupCache then begin
Result.Clear;
{$WARNINGS OFF}
lst := TLookupListCracker(Field.LookupList).FList;