powered by Jive Software

destroy.getJid() is null


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() {
            public void processPacket(Stanza packet) {
                MUCUser mucUser = MUCUser.from(packet);
                if(mucUser == null){
                Destroy destroy = mucUser.getDestroy();
                if(destroy != null){
                    XLog.d("destroy:" + destroy.getJid());
        }, PresenceTypeFilter.UNAVAILABLE);


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