diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llxml/llxmlnode.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/linden/indra/llxml/llxmlnode.cpp b/linden/indra/llxml/llxmlnode.cpp index eb48b41..b83555a 100644 --- a/linden/indra/llxml/llxmlnode.cpp +++ b/linden/indra/llxml/llxmlnode.cpp | |||
@@ -311,6 +311,12 @@ void XMLCALL StartXMLNode(void *userData, | |||
311 | // Set the parent-child relationship with the current active node | 311 | // Set the parent-child relationship with the current active node |
312 | LLXMLNode* parent = (LLXMLNode *)userData; | 312 | LLXMLNode* parent = (LLXMLNode *)userData; |
313 | 313 | ||
314 | if (NULL == parent) | ||
315 | { | ||
316 | llwarns << "parent (userData) is NULL; aborting function" << llendl; | ||
317 | return; | ||
318 | } | ||
319 | |||
314 | new_node_ptr->mParser = parent->mParser; | 320 | new_node_ptr->mParser = parent->mParser; |
315 | 321 | ||
316 | // Set the current active node to the new node | 322 | // Set the current active node to the new node |