Skip to content

Commit 72d5098

Browse files
authored
Merge pull request #2078 from nextcloud/fix/noid/nil-check-of-room-token-when-selecting-user-to-create-room
fix: add nil check to prevent crash when adding room.token to dictionary
2 parents eb733e7 + 56013d2 commit 72d5098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NextcloudTalk/RoomsTableViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1296,7 +1296,7 @@ - (void)createRoomForSelectedUser:(NCUser *)user
12961296
ofType:kNCRoomTypeOneToOne
12971297
andName:nil
12981298
completionBlock:^(NCRoom *room, NSError *error) {
1299-
if (!error) {
1299+
if (!error && room.token != nil) {
13001300
[self.navigationController dismissViewControllerAnimated:YES completion:^{
13011301
[[NSNotificationCenter defaultCenter] postNotificationName:NCSelectedUserForChatNotification
13021302
object:self

0 commit comments

Comments
 (0)