mirror of
https://github.com/glest/glest-source.git
synced 2025-08-19 06:31:19 +02:00
- attempt to look for corrupt XML data
This commit is contained in:
@@ -182,6 +182,10 @@ XmlTree::~XmlTree(){
|
||||
|
||||
XmlNode::XmlNode(DOMNode *node){
|
||||
|
||||
if(node == NULL || node->getNodeName() == NULL) {
|
||||
throw runtime_error("XML structure seems to be corrupt!");
|
||||
}
|
||||
|
||||
//get name
|
||||
char str[strSize];
|
||||
XMLString::transcode(node->getNodeName(), str, strSize-1);
|
||||
|
Reference in New Issue
Block a user