summaryrefslogtreecommitdiffstats
path: root/gui/pages.cpp
diff options
context:
space:
mode:
authorthat <github@that.at>2015-02-26 01:30:04 +0100
committerDees Troy <dees_troy@teamw.in>2015-03-05 04:50:33 +0100
commit8d46c09ccf7b437403b52303b679e5027e6ae395 (patch)
treeacf50e15489eba14cdb6029a8d5c8245b40f7a05 /gui/pages.cpp
parentgui: introduce virtual RenderItem method in ScrollList (diff)
downloadandroid_bootable_recovery-8d46c09ccf7b437403b52303b679e5027e6ae395.tar
android_bootable_recovery-8d46c09ccf7b437403b52303b679e5027e6ae395.tar.gz
android_bootable_recovery-8d46c09ccf7b437403b52303b679e5027e6ae395.tar.bz2
android_bootable_recovery-8d46c09ccf7b437403b52303b679e5027e6ae395.tar.lz
android_bootable_recovery-8d46c09ccf7b437403b52303b679e5027e6ae395.tar.xz
android_bootable_recovery-8d46c09ccf7b437403b52303b679e5027e6ae395.tar.zst
android_bootable_recovery-8d46c09ccf7b437403b52303b679e5027e6ae395.zip
Diffstat (limited to 'gui/pages.cpp')
-rw-r--r--gui/pages.cpp3
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;