Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE SubscriptionManagerImpl when presence received #37

Open
ghost opened this issue Mar 20, 2013 · 0 comments
Open

NPE SubscriptionManagerImpl when presence received #37

ghost opened this issue Mar 20, 2013 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 20, 2013

Its null pointer exception in SubscriptionManagerImpl line 66

   @Override
public void onPresenceReceived(final PresenceReceivedEvent event) {
    final Presence presence = event.getPresence();
    if (presence.getType() == Presence.Type.subscribe) {
        final XMLPacket nick = presence.getExtension("nick",     XmppNamespaces.NICK);
        eventBus.fireEventFromSource(
                new SubscriptionRequestReceivedEvent(presence.getFrom(), nick.getText()), this);
    }
}

nick is null .....
i am testing with emite 0.8-SNAPSHOT , server openfire 3.8.1, gwt .2.5.0 my request:

and response:

@ghost ghost closed this as completed Mar 20, 2013
@ghost ghost reopened this Mar 20, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants