Browse Source

Fixes a potential crash in TStrings.SaveToStream

git-svn-id: trunk@16187 -
sekelsenmat 15 years ago
parent
commit
8b6e8079ec
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rtl/objpas/classes/stringl.inc

+ 1 - 0
rtl/objpas/classes/stringl.inc

@@ -851,6 +851,7 @@ Var
   S : String;
 begin
   S:=Text;
+  if S = '' then Exit;
   Stream.WriteBuffer(Pointer(S)^,Length(S));
 end;