powered by Jive Software

destroy.getJid() is null


#1

I am using smack4.1.9 on Android,when a room destroy,I get a callback,but the jid is null:

SmackManager.getInstance().getConnection().addSyncStanzaListener(new StanzaListener() {
            @Override
            public void processPacket(Stanza packet) {
                MUCUser mucUser = MUCUser.from(packet);
                if(mucUser == null){
                    return;
                }
                Destroy destroy = mucUser.getDestroy();
                if(destroy != null){
                    XLog.d("destroy:" + destroy.getJid());
                }
            }
        }, PresenceTypeFilter.UNAVAILABLE);

#2

Have you checked the stanza log to see, whether or not the stanza that came in included a jid?