You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fatal Exception: java.lang.NullPointerException
at com.smartdevicelink.transport.TransportBroker.sendMessageToRouterService(SourceFile:92)
at com.smartdevicelink.transport.TransportBroker.sendMessageToRouterService(SourceFile:79)
at com.smartdevicelink.transport.TransportBroker.sendRegistrationMessage(SourceFile:7519)
at com.smartdevicelink.transport.TransportBroker$1.onServiceConnected(SourceFile:65)
Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'android.os.IBinder android.os.Messenger.getBinder()' on a null object reference
at com.smartdevicelink.transport.TransportBroker.sendMessageToRouterService(SourceFile:98)
at com.smartdevicelink.transport.TransportBroker.sendMessageToRouterService(SourceFile:79)
at com.smartdevicelink.transport.TransportBroker.sendRegistrationMessage(SourceFile:7519)
at com.smartdevicelink.transport.TransportBroker$1.onServiceConnected(SourceFile:65)
In both cases routerServiceMessenger is null. onServiceDisconnected() may be called called after the IF statement passes but before routerServiceMessenger is used.
The text was updated successfully, but these errors were encountered:
We can't object lock inside of onServiceConnected an onServiceDisconnected callbacks, so I think simplest fix would be to catch NPE
askirk
changed the title
NPE in TransportBroker.sendMessageToRouterService() : routerServiceMessenger
NPEs in TransportBroker.sendMessageToRouterService() : routerServiceMessenger
Jan 20, 2017
Stacktraces:
Occurs at https://github.com/smartdevicelink/sdl_android/blob/master/sdl_android_lib/src/com/smartdevicelink/transport/TransportBroker.java#L92
AND
https://github.com/smartdevicelink/sdl_android/blob/master/sdl_android_lib/src/com/smartdevicelink/transport/TransportBroker.java#L98
In both cases routerServiceMessenger is null. onServiceDisconnected() may be called called after the IF statement passes but before routerServiceMessenger is used.
The text was updated successfully, but these errors were encountered: