diff options
Diffstat (limited to 'protocols/WhatsApp')
-rw-r--r-- | protocols/WhatsApp/src/appsync.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/appsync.cpp b/protocols/WhatsApp/src/appsync.cpp index 5f17b2e765..1a0d1b2191 100644 --- a/protocols/WhatsApp/src/appsync.cpp +++ b/protocols/WhatsApp/src/appsync.cpp @@ -231,7 +231,7 @@ void WhatsAppProto::ApplyPatch(const JSONNode &index, const Wa__SyncActionValue setUString(pUser->hContact, "FirstName", str.c_str()); setUString(pUser->hContact, "LastName", fullName + str.GetLength() + 1); } - else { + else if (fullName != nullptr) { auto *p = strrchr(fullName, ' '); if (p != 0) { *p = 0; |