From c973bbc6d5d94442ebddb2135e407d4fe10b1b6c Mon Sep 17 00:00:00 2001 From: mattias Date: Thu, 15 Oct 2009 15:32:43 +0000 Subject: [PATCH] xmlstreaming: started reading collections, from Christian, bug #14695 git-svn-id: trunk@22194 - --- components/codetools/laz_xmlstreaming.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/codetools/laz_xmlstreaming.pas b/components/codetools/laz_xmlstreaming.pas index fe9d01e030..6f35be8112 100644 --- a/components/codetools/laz_xmlstreaming.pas +++ b/components/codetools/laz_xmlstreaming.pas @@ -762,8 +762,8 @@ begin CheckNode('collection'); FElementPosition:=0; // go to node 'list' - FElement:=FElement.FirstChild as TDOMElement; - CheckNode('list'); + if Assigned(FElement.FirstChild) and (FElement.FirstChild.NodeName='list') then + FElement:=FElement.FirstChild as TDOMElement; end; end; end;