aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roommemberevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/roommemberevent.cpp')
-rw-r--r--lib/events/roommemberevent.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/events/roommemberevent.cpp b/lib/events/roommemberevent.cpp
index 35cbdb3a..3193a54d 100644
--- a/lib/events/roommemberevent.cpp
+++ b/lib/events/roommemberevent.cpp
@@ -39,7 +39,8 @@ struct JsonConverter<MembershipType> {
if (membershipString == *it)
return MembershipType(it - membershipStrings.begin());
- qCWarning(EVENTS) << "Unknown MembershipType: " << membershipString;
+ if (!membershipString.isEmpty())
+ qCWarning(EVENTS) << "Unknown MembershipType: " << membershipString;
return MembershipType::Undefined;
}
};