浏览代码

* do not show the empty component name in a databaseerror

git-svn-id: trunk@5001 -
joost 19 年之前
父节点
当前提交
2754389132
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      fcl/db/db.pp

+ 1 - 1
fcl/db/db.pp

@@ -1914,7 +1914,7 @@ end;
 Procedure DatabaseError (Const Msg : String; Comp : TComponent);
 
 begin
-  if assigned(Comp) then
+  if assigned(Comp) and (Comp.Name <> '') then
     Raise EDatabaseError.CreateFmt('%s : %s',[Comp.Name,Msg])
   else
     DatabaseError(Msg);