05-11 13:57:58.482 31468-31468/org.jboss.aerogear.unifiedpush.helloworld E/AndroidRuntime: FATAL EXCEPTION: main
|
Process: org.jboss.aerogear.unifiedpush.helloworld, PID: 31468
|
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.jboss.aerogear.unifiedpush.helloworld/org.jboss.aerogear.unifiedpush.helloworld.activities.MessagesActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.jboss.aerogear.android.unifiedpush.gcm.AeroGearGCMPushRegistrar.sendMetrics(org.jboss.aerogear.android.unifiedpush.metrics.UnifiedPushMetricsMessage, org.jboss.aerogear.android.core.Callback)' on a null object reference
|
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
|
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
|
at android.app.ActivityThread.-wrap11(ActivityThread.java)
|
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
|
at android.os.Handler.dispatchMessage(Handler.java:102)
|
at android.os.Looper.loop(Looper.java:148)
|
at android.app.ActivityThread.main(ActivityThread.java:5422)
|
at java.lang.reflect.Method.invoke(Native Method)
|
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
|
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
|
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void org.jboss.aerogear.android.unifiedpush.gcm.AeroGearGCMPushRegistrar.sendMetrics(org.jboss.aerogear.android.unifiedpush.metrics.UnifiedPushMetricsMessage, org.jboss.aerogear.android.core.Callback)' on a null object reference
|
at org.jboss.aerogear.unifiedpush.helloworld.HelloWorldApplication.sendMetric(HelloWorldApplication.java:54)
|
at org.jboss.aerogear.unifiedpush.helloworld.activities.MessagesActivity.onCreate(MessagesActivity.java:49)
|
at android.app.Activity.performCreate(Activity.java:6251)
|
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
|
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
|
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
|
at android.app.ActivityThread.-wrap11(ActivityThread.java)
|
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
|
at android.os.Handler.dispatchMessage(Handler.java:102)
|
at android.os.Looper.loop(Looper.java:148)
|
at android.app.ActivityThread.main(ActivityThread.java:5422)
|
at java.lang.reflect.Method.invoke(Native Method)
|
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
|
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
|