diff --git a/Monal/Classes/MLContact.m b/Monal/Classes/MLContact.m index 2165a25c6..db51e477f 100644 --- a/Monal/Classes/MLContact.m +++ b/Monal/Classes/MLContact.m @@ -858,6 +858,9 @@ +(MLContact*) contactFromDictionary:(NSDictionary*) dic contact.lastInteractionTime = nilExtractor([dic objectForKey:@"lastInteraction"]); //no default needed, already done in DataLayer contact.rosterGroups = [dic objectForKey:@"rosterGroups"]; contact->_avatar = nil; + + MLAssert(contact.rosterGroups != nil, @"rosterGroups must be non-nil (if a user is in no groups, it should be empty set)"); + return contact; }