I’m having some trouble dealing with multiple logins from XIFF.
Bob logs into Openfire from home using XIFF
Bob forgets to log out at home.
Bob comes to work and logs in again.
His home machine throws the following ActionScript exception:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.jivesoftware.xiff.core::XMPPConnection/org.jivesoftware.xiff.core:XMPPConne ction::socketReceivedData()[C:\projects\XIFF.SVN\src\org\jivesoftware\xiff\core\ XMPPConnection.as:519]
The line in question is:
> var nodeName:String = firstNode.nodeName.toLowerCase();
Basically, firstNode is null because the data property on the DataEvent object passed into socketReceivedData() is empty (it’s a single space, aka " ").
I’m thinking I should edit XMPPConnection.as to process this as a disconnect event. Possibly as a different type of disconnect than exists today, perhaps as a SocketDisconnect. What do you guys think?