[Crashlytics] [New Fatal Issue] com.adobe.marketing.mobile.services.ui.AEPMessage.dismiss | Community
Skip to main content
May 9, 2024
Solved

[Crashlytics] [New Fatal Issue] com.adobe.marketing.mobile.services.ui.AEPMessage.dismiss

  • May 9, 2024
  • 1 reply
  • 773 views

We have been noticing a significant amount of crash on our firebase crashlytics in relation to Adobe In-App message on our Android App.

 

We are currently using

com.adobe.marketing.mobile:core: version - 2.3.1

 

This is the error - 

 

Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'void android.view.View.startAnimation(android.view.animation.Animation)' on a null object reference
at com.adobe.marketing.mobile.services.ui.AEPMessage.dismiss (AEPMessage.java:298)
 
I have attached a screenshot of the same and a detailed stack trace of the exception for your reference.
 
Can someone please have a look at this and help fix it. Thanks. 
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Manoj_Kumar

Hello @anilkrishna 

 

I would start looking at onDismiss function. It seems StartAnimation function is called when the IAM is dismissed and no paramaters are pass to StartAnimation function.

 

Here is the sample code for IAMs
https://github.com/adobe/aepsdk-messaging-android/blob/main/code/testapp/src/main/java/com/adobe/marketing/mobile/messagingsample/MainActivity.kt

1 reply

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
May 9, 2024

Hello @anilkrishna 

 

I would start looking at onDismiss function. It seems StartAnimation function is called when the IAM is dismissed and no paramaters are pass to StartAnimation function.

 

Here is the sample code for IAMs
https://github.com/adobe/aepsdk-messaging-android/blob/main/code/testapp/src/main/java/com/adobe/marketing/mobile/messagingsample/MainActivity.kt

Manoj     Find me on LinkedIn
May 9, 2024

Dear @_manoj_kumar_ 

 

Thanks for the response. Appreciate it. 

 

I do understand what is happening here. Since these classes are blackbox code to us we cannot do much to change anything from our side. Perhaps raising an issue on the github project might help I believe. 

 

However, I also see that in the latest 3.0.0 version, there are lot of changes related to the IAM and perhaps this issue is already handled? One thing we could do is to update the mobile core version and monitor the crashlytics to see if we still face this.