Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat | DONATE
Intermittent crash when showing Google Play achievements — Gideros Forum

Intermittent crash when showing Google Play achievements

totebototebo Member
edited February 2015 in Plugins
Hi guys,

I have a button to show achievements in my game. Half of the times when I tap it the game crashes. I also have a leaderboard button which always works without crashing.

Where am I going wrong?

Cheers,

Niclas
02-03 10:04:26.824: D/AndroidRuntime(13640): Shutting down VM
02-03 10:04:26.835: E/AndroidRuntime(13640): FATAL EXCEPTION: main
02-03 10:04:26.835: E/AndroidRuntime(13640): Process: com.google.android.gms.ui, PID: 13640
02-03 10:04:26.835: E/AndroidRuntime(13640): java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.ViewGroup.getLocationInWindow(int[])' on a null object reference
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at com.google.android.play.a.a.a(SourceFile:128)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at com.google.android.gms.games.ui.cp.run(SourceFile:45)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at com.google.android.gms.games.ui.co.a(SourceFile:51)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at android.support.v7.widget.br.run(SourceFile:248)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at android.view.Choreographer$CallbackRecord.run(Choreographer.java:767)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at android.view.Choreographer.doCallbacks(Choreographer.java:580)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at android.view.Choreographer.doFrame(Choreographer.java:549)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:753)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at android.os.Handler.handleCallback(Handler.java:739)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at android.os.Handler.dispatchMessage(Handler.java:95)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at android.os.Looper.loop(Looper.java:135)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at android.app.ActivityThread.main(ActivityThread.java:5221)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at java.lang.reflect.Method.invoke(Native Method)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at java.lang.reflect.Method.invoke(Method.java:372)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
02-03 10:04:26.835: E/AndroidRuntime(13640): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
My Gideros games: www.totebo.com

Comments

Sign In or Register to comment.