Preprocessor_DOM::newPartNodeArray should check that loadXML succeeded
authorBrad Jorsch <bjorsch@wikimedia.org>
Fri, 9 May 2014 20:09:03 +0000 (16:09 -0400)
committerTim Starling <tstarling@wikimedia.org>
Mon, 12 May 2014 03:44:23 +0000 (03:44 +0000)
commitff78abc1a178ead47864d0836a0287dd88c11a04
tree1e97f11744f70cc9f45c008f31f1998278de61f0
parentcde5b1a31a9de4028d9e207892b391055dca3062
Preprocessor_DOM::newPartNodeArray should check that loadXML succeeded

If something manages to get invalid UTF-8 into
Preprocessor_DOM::newPartNodeArray, or anything else that somehow is
invalid XML, it should handle it in the same way that
Preprocessor_DOM::preprocessToObj does rather than having something
further down the line blow up on a PPNode_DOM with a null node.

Bug: 65081
Change-Id: Ic24db455808106e17d49a11e41df33ec170f1206
includes/parser/Preprocessor_DOM.php