Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed instance where items are null and exception is thrown if the ro… #110

Merged
merged 1 commit into from
Aug 24, 2016

Conversation

hacorbin
Copy link

This handles the case where the error: "TypeError: this.items is undefined" is thrown when roster.get has not yet been called. This can happen if a user is storing the roster in session and restoring from there instead of pull roster.get again. Either way, it should not be iterating over an array that could potentially be undefined.

@jcbrand jcbrand merged commit 8877b7f into strophe:master Aug 24, 2016
@jcbrand
Copy link

jcbrand commented Aug 24, 2016

thanks

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants