-
Notifications
You must be signed in to change notification settings - Fork 24
Description
Describe the bug
I'm creating an Openfire plugin that wraps xmpp-web and deploys it in Openfire's embedded web server. This will make deployment of your client into Openfire super simple.
While testing the plugin, and logging in with my own account (lots of roster items, lots of MUC rooms to join), the console log is full of stace traces like this one:
Uncaught TypeError: Cannot read properties of undefined (reading 'xmlns')
at index-0eca49fe.js:15:268250
at ol.getChildrenByFilter (index-0eca49fe.js:15:237771)
at xk.parseMessage (index-0eca49fe.js:15:268219)
at mh.parseStanza (index-0eca49fe.js:15:266731)
at Ye.emit (index-0eca49fe.js:15:228445)
at mh._onElement (index-0eca49fe.js:15:245001)
at Ye.emit (index-0eca49fe.js:15:228386)
at O2.onEndElement (index-0eca49fe.js:15:251633)
at Ye.emit (index-0eca49fe.js:15:228386)
at e2._handleTagOpening (index-0eca49fe.js:15:239931)
With my (very) limited javascript skills, I tried clicking through to the source code, which pointed at this line of code:
It appears that this bit of code expectes there always to be an attrs property on whatever is being iterated over there?
I'm certainly not ruling out a bug in Openfire here, but it might be good to perform a null-check on attrs before trying to access one of its properties.
Steps to reproduce
No response
Expected behavior
I'm certainly not ruling out a bug in Openfire here, but it might be good to perform a null-check on attrs before trying to access one of its properties.
Relevant log
No response
local.js configuration
No response
XMPP-web version
0.10.0
Installation
Github release archive
XMPP server(s)
Openfire
Browser(s)
Chrome
Device(s)
No response
Other information
No response