XIFF Room.destroy bug

There seems to be a bug in Room.as. When calling the ‘destroy’ function, if only a ‘reason’ if passed in then an exception is thrown when ‘owner.destroy(reason, alternateJID.escaped);’ is called because ‘alternateJID’ is null. The fix is to first test if ‘alternateJID’ is null and then if it is call ‘owner.destroy(reason,null);’ or if it isn’t call ‘owner.destroy(reason, alternateJID.escaped);’

This bug appears to in revision 10640 of Room.as

  • AYAL