Skip to content
This repository has been archived by the owner on Apr 19, 2024. It is now read-only.

Unexpectedly found nil in getUsersList #6

Closed
LoopingLouieX opened this issue Mar 22, 2020 · 1 comment
Closed

Unexpectedly found nil in getUsersList #6

LoopingLouieX opened this issue Mar 22, 2020 · 1 comment

Comments

@LoopingLouieX
Copy link

LoopingLouieX commented Mar 22, 2020

After clicking on "Add Friends" it find's nil in the following function unexpectedly.
This also happens in the demo app (master branch).

 private func getUsersList() {
        userListNetworking.fetchUsers { usersList in
            let sortedUserList = Array(usersList.values).sorted { (friend1, friend2) -> Bool in
                return friend1.name < friend2.name.     //Xcode showing the nil here
            }
            self.users = sortedUserList
            self.blankLoadingView.isHidden = true
            self.tableView.reloadData()
        }
    }
@vitaliy-paliy
Copy link
Owner

Hey,
I've fixed this bug in the 1.4 update.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants