Fixes NullPointerException and loosing some multichat messages.

cusax-fix
Damian Minkov 14 years ago
parent 34779dd6db
commit c864ecb525

@ -2341,7 +2341,8 @@ public void processPacket(Packet packet)
// Check if the MUCUser informs that the invitee
// has declined the invitation
if (mucUser.getDecline() != null
if (mucUser != null
&& mucUser.getDecline() != null
&& ((org.jivesoftware.smack.packet.Message) packet).getType()
!= org.jivesoftware.smack.packet.Message.Type.error)
{

Loading…
Cancel
Save