Crashes when sending a message
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());
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
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.