Skip to content

Null object reference - PresenceChannelImpl.handleSubscriptionSuccessfulMessage #183

@malmstein

Description

@malmstein

What is the issue?

For the last week we've been receiving crash reports from Pusher. We are using version 1.8.0 and the crashes only occur on Android 7 and Android 8

Is it a crash report? Submit stack traces or anything that you think would help

Fatal Exception: java.lang.NullPointerException
Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
com.pusher.client.channel.impl.PresenceChannelImpl.handleSubscriptionSuccessfulMessage

com.pusher.client.channel.impl.PresenceChannelImpl.handleSubscriptionSuccessfulMessage it do(PresenceChannelImpl.java:1130)
com.pusher.client.channel.impl.ChannelManager.onMessage (ChannelManager.java:107)
com.pusher.client.connection.websocket.WebSocketConnection.handleEvent (WebSocketConnection.java:2177)
com.pusher.client.connection.websocket.WebSocketConnection$6.run (WebSocketConnection.java:261)
com.pusher.client.util.Factory$1.run (Factory.java:109)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)

Any improvements you suggest

It's not the first crash from Pusher that we have to handle in our own code. However this time we don't really know where is this coming from.


CC @pusher/mobile

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions