summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2018-07-17 14:58:05 (GMT)
committerKevin Smith <git@kismith.co.uk>2018-07-17 14:58:05 (GMT)
commitcdd33515142958017563d83b756df0ca31b023a7 (patch)
treefa5bf969b4745a10321318cd1d4234659564b944
parent9dbc6e8837038f5c084caa684a8cefa78daaf8b9 (diff)
downloadswift-cdd33515142958017563d83b756df0ca31b023a7.zip
swift-cdd33515142958017563d83b756df0ca31b023a7.tar.bz2
Don't crash on missing bookmark result
Test-Information: Before the patch, boom, after the patch, no boom. (No boom today. Boom tomorrow. There's always a boom tomorrow) Change-Id: Id454d7b0d0cd05774d0f1ee0b3cb77057371c459
-rw-r--r--Swiften/MUC/MUCBookmarkManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/MUC/MUCBookmarkManager.cpp b/Swiften/MUC/MUCBookmarkManager.cpp
index e394217..da021ad 100644
--- a/Swiften/MUC/MUCBookmarkManager.cpp
+++ b/Swiften/MUC/MUCBookmarkManager.cpp
@@ -26,7 +26,7 @@ MUCBookmarkManager::MUCBookmarkManager(IQRouter* iqRouter) {
}
void MUCBookmarkManager::handleBookmarksReceived(std::shared_ptr<Storage> payload, ErrorPayload::ref error) {
- if (error) {
+ if (error || !payload) {
return;
}