diff options
Diffstat (limited to 'gui/pages.cpp')
-rw-r--r-- | gui/pages.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/pages.cpp b/gui/pages.cpp index 50c60a695..18ddf9c33 100644 --- a/gui/pages.cpp +++ b/gui/pages.cpp @@ -105,6 +105,9 @@ int ConvertStrToColor(std::string str, COLOR* color) // Helper APIs xml_node<>* FindNode(xml_node<>* parent, const char* nodename, int depth /* = 0 */) { + if (!parent) + return NULL; + xml_node<>* child = parent->first_node(nodename); if (child) return child; |