Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GCM registration issue #46

Open
dirkam opened this issue Aug 21, 2015 · 0 comments
Open

GCM registration issue #46

dirkam opened this issue Aug 21, 2015 · 0 comments

Comments

@dirkam
Copy link

dirkam commented Aug 21, 2015

I get the following NPE when I try to use signed APK. It works if I run it in debug mode. I have added both (debug and signed) SHA1 to the developer console and G+ login and other APIs work well. I use the main version of the Android SDK - as suggested in #40

Any ideas what can go wrong?

    java.lang.RuntimeException: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
            at com.baasbox.android.ExceptionHandler$1.onError(ExceptionHandler.java:33)
            at com.baasbox.android.impl.Dispatcher$Worker.run(Dispatcher.java:174)
     Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])' on a null object reference
            at com.baasbox.android.impl.GCMWrapper.registerGCM0(GCMWrapper.java:85)
            at com.baasbox.android.impl.GCMWrapper.registerGCM(GCMWrapper.java:77)
            at com.baasbox.android.BaasCloudMessagingService.registerWithGoogle(BaasCloudMessagingService.java:85)
            at com.baasbox.android.BaasCloudMessagingService.access$200(BaasCloudMessagingService.java:22)
            at com.baasbox.android.BaasCloudMessagingService$RegisterMessaging.asyncCall(BaasCloudMessagingService.java:370)
            at com.baasbox.android.BaasCloudMessagingService$RegisterMessaging.asyncCall(BaasCloudMessagingService.java:346)
            at com.baasbox.android.impl.Task.execute(Task.java:189)
            at com.baasbox.android.impl.Dispatcher$Worker.run(Dispatcher.java:170)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant