Fix crash: Room directory: Clicking on "No public rooms available" make the app crash

This commit is contained in:
manuroe
2017-06-21 16:00:05 +02:00
parent 687fb55b5e
commit d87f9410eb
+6 -1
View File
@@ -210,7 +210,12 @@
{
if (indexPath.section == recentsDataSource.directorySection)
{
[self openPublicRoomAtIndexPath:indexPath];
// Sanity check
MXPublicRoom *publicRoom = [recentsDataSource.publicRoomsDirectoryDataSource roomAtIndexPath:indexPath];
if (publicRoom)
{
[self openPublicRoomAtIndexPath:indexPath];
}
}
else
{