ibm-bluemix-mobile-services / bms-clientsdk-android-push

Android Push notifications SDK for IBM Cloud Mobile Services
Apache License 2.0
10 stars 12 forks source link

Random NPE on MFPPushUrlBuilder #123

Open agapaymarlo opened 5 years ago

agapaymarlo commented 5 years ago

I got a random crash on my app, may i know how to handle such issue:

Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference at java.lang.StringBuilder. + 113(StringBuilder.java:113) at com.ibm.mobilefirstplatform.clientsdk.android.push.internal.MFPPushUrlBuilder.getMessageUrl + 150(MFPPushUrlBuilder.java:150) at com.ibm.mobilefirstplatform.clientsdk.android.push.api.MFPPush.sendMessageDeliveryStatus + 724(MFPPush.java:724) at com.ibm.mobilefirstplatform.clientsdk.android.push.api.MFPPushIntentService.onMessageReceived + 189(MFPPushIntentService.java:189) at com.google.firebase.messaging.FirebaseMessagingService.zzd + 60(:60) at com.google.firebase.iid.zzg.run + 4(:4) at java.util.concurrent.ThreadPoolExecutor.runWorker + 1162(ThreadPoolExecutor.java:1162) at java.util.concurrent.ThreadPoolExecutor$Worker.run + 636(ThreadPoolExecutor.java:636) at com.google.android.gms.common.util.concurrent.zza.run + 6(:6) at java.lang.Thread.run + 784(Thread.java:784)

AnanthaKrish commented 5 years ago

@agapaymarlo Hi , Sure I will help you. I have some questions regarding the issue,

  1. Are you using the latest SDK ?
  2. In which region you have created the Push service instance ?