Files
mostlymatter/app
Agniva De Sarker a9415aff6f MM-22560: Fix crash during slack import (#14054)
* MM-22560: Fix crash during slack import

We were not checking for existence of the users map value
before accessing the Id field. We fix it by checking for
nil pointer first.

Also, we check the length of the Members slice to prevent range
panics.

And finally, while we are here, we move to a switch-case
to make the code a little more idiomatic.

* Adding warn logs when user not found

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
2020-03-16 21:52:06 +05:30
..