chat-sdk-android icon indicating copy to clipboard operation
chat-sdk-android copied to clipboard

Crashes when sending a message

Open Lavii7 opened this issue 9 years ago • 2 comments

After sending a message to another android device getting the below null exception crash: FATAL EXCEPTION: main Process: com.braunster.androidchatsdk.app, PID: 25229 java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.lang.Boolean.toString()' on a null object reference at com.braunster.androidchatsdk.firebaseplugin.firebase.BFirebaseNetworkAdapter$3.onDataChange(BFirebaseNetworkAdapter.java:332) at com.google.firebase.database.Query$1.onDataChange(Unknown Source)

it takes to this point when clicking on the BfirebaseNetworkAdapter.java: Timber.v(user.getEntityID() + ", " + user.getOnline().toString());

Lavii7 avatar Apr 20 '17 23:04 Lavii7

Hi @Lavii7,

Can you confirm at what stage in the development process this issue is occurring? Do messages send when you:

  • Download the Chat SDK on our test accounts
  • Configure your project with your custom Firebase account
  • Make additional changes to the code

Knowing this information will enable us to confirm if this is an issue with the SDK or whether some problems have got in during your own modifications. We can then look at ways of fixing the issue.

Simon

simonsmiley64 avatar Apr 20 '17 23:04 simonsmiley64

Have downloaded and configured it according to the instruction provided; as to change no change other than the package name used everything else is the same.

Lavii7 avatar Apr 24 '17 22:04 Lavii7