diff options
author | George Hazan <ghazan@miranda.im> | 2022-10-23 20:46:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-10-23 20:46:16 +0300 |
commit | 71e5d084b56798711a93e8018b925dafaa724ef9 (patch) | |
tree | cbbb98732fbcc5114b78d15bf3032bd981a7c3bd /protocols/WhatsApp/src/wanode.cpp | |
parent | e44efd52b62e375eb76bec62b71e83d6b8b23972 (diff) |
WhatsApp: prepare to send messages + code reordering
Diffstat (limited to 'protocols/WhatsApp/src/wanode.cpp')
-rw-r--r-- | protocols/WhatsApp/src/wanode.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/WhatsApp/src/wanode.cpp b/protocols/WhatsApp/src/wanode.cpp index cbe9408f20..8d5a2ef7f0 100644 --- a/protocols/WhatsApp/src/wanode.cpp +++ b/protocols/WhatsApp/src/wanode.cpp @@ -104,6 +104,9 @@ WANode *WANode::addChild(const char *pszName) WANode* WANode::getChild(const char *pszName) const { + if (this == nullptr) + return nullptr; + for (auto &it : children) if (it->title == pszName) return it; |