NPE when use Admob in Google Play Services version 6.1.11

113 views
Skip to first unread message

Allen

unread,
Nov 10, 2014, 10:48:33 PM11/10/14
to google-adm...@googlegroups.com
Today I found a java.lang.NullPointerException from my user in Crashlytics, what should I do to handle it? Thanks.

I am using proguard but Crashlytics will de-compile the trace and find the real exception trace as following:

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.package.name/com.google.android.gms.ads.AdActivity}: java.lang.NullPointerException
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2184)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
       at android.app.ActivityThread.access$800(ActivityThread.java:135)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:136)
       at android.app.ActivityThread.main(ActivityThread.java:5001)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
       at dalvik.system.NativeStart.main(NativeStart.java)
Caused by: java.lang.NullPointerException
       at com.google.android.gms.ads.internal.overlay.a.a(SourceFile:72)
       at com.google.android.gms.ads.internal.overlay.c.a(SourceFile:275)
       at com.google.android.gms.ads.internal.overlay.a.b.onTransact(SourceFile:58)
       at android.os.Binder.transact(Binder.java:361)
       at com.google.android.gms.internal.ds$a$a.onCreate()
       at com.google.android.gms.ads.AdActivity.onCreate()
       at android.app.Activity.performCreate(Activity.java:5231)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
       at android.app.ActivityThread.access$800(ActivityThread.java:135)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:136)
       at android.app.ActivityThread.main(ActivityThread.java:5001)
       at java.lang.reflect.Method.invokeNative(Method.java)
       at java.lang.reflect.Method.invoke(Method.java:515)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
       at dalvik.system.NativeStart.main(NativeStart.java)

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Nov 14, 2014, 10:26:36 PM11/14/14
to google-adm...@googlegroups.com
Hello,

This is the first time I've seen this. I don't think you'll be able to do anything yourself, but I've filed a bug to have this looked at.

Thanks,
Eric

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Nov 20, 2014, 10:18:33 PM11/20/14
to google-adm...@googlegroups.com
The fix for this one was too late for the 6.5 Google Play services release, but it will be addressed in the next release.

Thanks,
Eric

Arnaud

unread,
Dec 20, 2014, 12:46:50 PM12/20/14
to google-adm...@googlegroups.com
Thanks, good to know a fix is done.

Just for info, I saw it happen today. I assume this is not deployed yet in GPS.


java.lang.NullPointerException: 
	at com.google.android.gms.ads.internal.overlay.a.a()(SourceFile:72)
	at com.google.android.gms.ads.internal.overlay.c.a()(SourceFile:275)
	at com.google.android.gms.ads.internal.overlay.a.b.onTransact()(SourceFile:58)
	at android.os.Binder.transact()(Binder.java:326)
	at com.google.android.gms.internal.dx$a$a.onCreate()(null:-1)
	at com.google.android.gms.ads.AdActivity.onCreate()(null:-1)
	at android.app.Activity.performCreate()(Activity.java:5066)
	at android.app.Instrumentation.callActivityOnCreate()(Instrumentation.java:1101)
	at android.app.ActivityThread.performLaunchActivity()(ActivityThread.java:2307)
	at android.app.ActivityThread.handleLaunchActivity()(ActivityThread.java:2387)
	at android.app.ActivityThread.access$600()(ActivityThread.java:151)
	at android.app.ActivityThread$H.handleMessage()(ActivityThread.java:1331)
	at android.os.Handler.dispatchMessage()(Handler.java:99)
	at android.os.Looper.loop()(Looper.java:155)
	at android.app.ActivityThread.main()(ActivityThread.java:5454)
	at java.lang.reflect.Method.invokeNative()(Method.java:-2)
	at java.lang.reflect.Method.invoke()(Method.java:511)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run()(ZygoteInit.java:1029)
	at com.android.internal.os.ZygoteInit.main()(ZygoteInit.java:796)
	at dalvik.system.NativeStart.main()(NativeStart.java:-2)

Eric Leichtenschlag (Mobile Ads SDK Team)

unread,
Dec 22, 2014, 11:23:03 AM12/22/14
to google-adm...@googlegroups.com
Yeah, this trace is coming from a 6.5 version of play services, but the fix missed the 6.5 release and will be in the next (it'll probably be 6.7) release.

Thanks,
Eric
Reply all
Reply to author
Forward
0 new messages