Occasionally, SET_ROSTER gets called with an empty array. This manifests at the moment with a cascade failure, resulting in UserCard accessing the property of an undefined, crashing the app.
The mutation is called in two (3) places, all in plugins/stanza.js, so this can happen because of two reasons:
bind() is triggered with a session resumption, and getRoster() -- as it's known to -- gets an empty array
iq:set:roster has two identical handlers, maybe they race condition somehow?
Occasionally,
SET_ROSTER
gets called with an empty array. This manifests at the moment with a cascade failure, resulting inUserCard
accessing the property of anundefined
, crashing the app.The mutation is called in two (3) places, all in
plugins/stanza.js
, so this can happen because of two reasons:bind()
is triggered with a session resumption, andgetRoster()
-- as it's known to -- gets an empty arrayiq:set:roster
has two identical handlers, maybe they race condition somehow?