Browse Source

* fixed bug in xsdTryParseBoolean (segfault on null string)

git-svn-id: trunk@14215 -
ivost 15 years ago
parent
commit
6941020524
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/libxml/src/xmlxsd.pas

+ 3 - 0
packages/libxml/src/xmlxsd.pas

@@ -882,6 +882,9 @@ var
   P: PChar;
   P: PChar;
   Num: QWord;
   Num: QWord;
 begin
 begin
+  if not Assigned(Chars) then
+    Exit(False);
+
   if Len < 0 then
   if Len < 0 then
   begin
   begin
     P := PChar(Chars);
     P := PChar(Chars);