소스 검색

* TBlobField.SaveToStream() should check whether CreateBlobStream actually creates a stream

git-svn-id: trunk@16219 -
michael 15 년 전
부모
커밋
1bc555dc53
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      packages/fcl-db/src/base/fields.inc

+ 2 - 1
packages/fcl-db/src/base/fields.inc

@@ -2607,7 +2607,8 @@ Var S : TStream;
 begin
   S:=GetBlobStream(bmRead);
   Try
-    Stream.CopyFrom(S,0);
+    If Assigned(S) then
+      Stream.CopyFrom(S,0);
   finally
     S.Free;
   end;