* Merging revisions 48702 from trunk:

------------------------------------------------------------------------
    r48702 | michael | 2021-02-17 22:07:57 +0100 (Wed, 17 Feb 2021) | 1 line
    
    * Cursor can be nil, patch from Mattias Gaertner
    ------------------------------------------------------------------------

git-svn-id: branches/fixes_3_2@48703 -
This commit is contained in:
michael 2021-02-17 21:09:45 +00:00
parent 19126c8f4e
commit 0d71b5ede0

View File

@ -3122,7 +3122,7 @@ begin
UpdateServerIndexDefs;
FStatement.Execute;
if not Cursor.FSelectable then
if (Cursor=nil) or (not Cursor.FSelectable) then
DatabaseError(SErrNoSelectStatement,Self);
// InternalInitFieldDef is only called after a prepare. i.e. not twice if