diff --git a/source/main.pas b/source/main.pas index 4ad66c20..2d723582 100644 --- a/source/main.pas +++ b/source/main.pas @@ -9697,7 +9697,8 @@ begin SynSQLSynUsed.FunctionNames.EndUpdate; end; - if (FActiveDbObj.NodeType <> lntNone) + if (FActiveDbObj <> nil) + and (FActiveDbObj.NodeType <> lntNone) and ( (PrevDBObj = nil) or (PrevDBObj.Connection <> FActiveDbObj.Connection)