Unable to start activity ComponentInfo{google.android.gms.ads.NotificationHandlerActivity} : NullPointerException

164 views
Skip to first unread message

Slobodan Nichevski

unread,
Jun 6, 2024, 3:35:22 AM6/6/24
to Google Mobile Ads SDK Developers
This error is appearing on Nexus 5x Android 8.1.0 device all the time. I can't reproduce it since I don't have such device accessible to me. Please advise future action or solution to this error. This is the full stuck trace of the error:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.snicevski2003.shoppinglist/com.google.android.gms.ads.NotificationHandlerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2778)
    android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
    android.app.ActivityThread.-wrap11(:0)
    android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
    android.os.Handler.dispatchMessage(Handler.java:106)
    android.os.Looper.loop(Looper.java:164)
    android.app.ActivityThread.main(ActivityThread.java:6494)
    java.lang.reflect.Method.invoke(Method.java:0)
    com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    com.google.android.gms.internal.ads.zzefo.zze(com.google.android.gms:play-services-ads@@23.1.0:2)
    com.google.android.gms.ads.NotificationHandlerActivity.onCreate(com.google.android.gms:play-services-ads-lite@@23.1.0:4)
    android.app.Activity.performCreate(Activity.java:7009)
    android.app.Activity.performCreate(Activity.java:7000)
    android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1214)
    android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2731)
    android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2856)
    android.app.ActivityThread.-wrap11(:0)
    android.app.ActivityThread$H.handleMessage(ActivityThread.java:1589)
    android.os.Handler.dispatchMessage(Handler.java:106)
    android.os.Looper.loop(Looper.java:164)
    android.app.ActivityThread.main(ActivityThread.java:6494)
    java.lang.reflect.Method.invoke(Method.java:0)
    com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
    com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Mobile Ads SDK Forum Advisor

unread,
Jun 6, 2024, 9:29:02 AM6/6/24
to snicev...@gmail.com, google-adm...@googlegroups.com

Hi Slobodan,

Please be advised that if you do not have the Nexus 5x Android 8.1.0 device, it can be found in the emulator within the device manager.

Could you confirm whether the mentioned issue is reproducible in our Google Sample Project. If so, please provide the following information privately so that we can gain full visibility of your implementation:

  • app ID
  • ad unit ID
  • Full stack trace
  • Sample project reproducing the issue

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files to us via reply to author option or using the steps below:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002tJEQBQA4&entry.80707362=00238641

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link.

This message is in relation to case "ref:!00D1U01174p.!5004Q02tJEQB:ref" (ADR-00238641)

Thanks,
 
Google Logo Mobile Ads SDK Team


nagamatu

unread,
Jan 2, 2025, 9:22:30 PM (3 days ago) Jan 2
to Google Mobile Ads SDK Developers
I have encountered the same issue with following stack trace.
If admob team provides the source code around com.google.android.gms.internal.ads.zzebv.zze, we can handle it by temporary correction.

Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
com.google.android.gms.internal.ads.zzebv.zze (com.google.android.gms:play-services-ads@@23.6.0:2)
com.google.android.gms.ads.NotificationHandlerActivity.onCreate (com.google.android.gms:play-services-ads-lite@@23.6.0:4)
android.app.Activity.performCreate (Activity.java:8305)
android.app.Activity.performCreate (Activity.java:8284)
android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1417)
android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3626)
android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3782)
android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:101)
android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135)
android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2307)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loopOnce (Looper.java:201)
android.os.Looper.loop (Looper.java:288)
android.app.ActivityThread.main (ActivityThread.java:7872)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:936)

2024年6月6日木曜日 22:29:02 UTC+9 Mobile Ads SDK Forum Advisor:

Mobile Ads SDK Forum Advisor

unread,
Jan 3, 2025, 1:59:55 AM (3 days ago) Jan 3
to naga...@gmail.com, google-adm...@googlegroups.com

Hi,

Thank you for contacting the Mobile Ads SDK Support team.

Could you confirm whether the mentioned issue is reproducible in our Google Sample Project? If yes, kindly provide the below information privately so that we can gain full visibility of your implementation:

  • app ID
  • ad unit ID
  • Full stack trace
  • Sample project reproducing the issue

If the file(s) you are looking to share are less than 25mb in total you can attach them to this case on your next reply. If you are having trouble attaching your file to this case or if your file(s) are larger than 25mb, you can share your files to us via reply to author option or using the steps below:

1. Navigate to

https://docs.google.com/forms/d/e/1FAIpQLSfkAiXMeYP-fw1W3Z-tT9uwmATEKO5X6S-th0gR2ezdKaaqfg/viewform?usp=pp_url&entry.400550049=Mobile+Ads+SDK&entry.460850823=5004Q00002tJEQBQA4&entry.80707362=00238641

2. Fill out all fields, and attach your file(s).

3. Please reply back on this thread when you have uploaded your file(s). Please do not share this link. 

This message is in relation to case "ref:!00D1U01174p.!5004Q02tJEQB:ref" (ADR-00238641)

Thanks,
 
Google Logo Mobile Ads SDK Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5



Reply all
Reply to author
Forward
Message has been deleted
0 new messages