Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1007] APS Cloud Push - Payload is null

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2015-07-15T22:06:54.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsn/a
ReporterShawn Lan
AssigneeRadamantis Torres-Lechuga
Created2015-07-08T01:34:11.000+0000
Updated2016-03-08T07:37:20.000+0000

Description

My android app has push notification functionality. If I do a fresh install, I'll see the following error. This only happens after I upgraded to SDK 4.0.0. [ERROR] : APSCloudPush: Payload is null! [ERROR] : TiApplication: (main) [4889,4889] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.GCMReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference; Titanium 4.0.0,2015/05/18 15:42,9239ff9 [ERROR] : TiApplication: java.lang.RuntimeException: Unable to start receiver com.appcelerator.aps.GCMReceiver: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference [ERROR] : TiApplication: at android.app.ActivityThread.handleReceiver(ActivityThread.java:2726) [ERROR] : TiApplication: at android.app.ActivityThread.access$1700(ActivityThread.java:144) [ERROR] : TiApplication: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1449) [ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:102) [ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:155) [ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5696) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Native Method) [ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:372) [ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1028) [ERROR] : TiApplication: [ERROR] : TiApplication: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int java.lang.String.length()' on a null object reference [ERROR] : TiApplication: at org.json.JSONTokener.nextCleanInternal(JSONTokener.java:116) [ERROR] : TiApplication: at org.json.JSONTokener.nextValue(JSONTokener.java:94) [ERROR] : TiApplication: at org.json.JSONObject.(JSONObject.java:156) [ERROR] : TiApplication: at org.json.JSONObject.(JSONObject.java:173) [ERROR] : TiApplication: at com.appcelerator.aps.APSCloudPush.showTrayNotification(APSCloudPush.java:347) [ERROR] : TiApplication: at com.appcelerator.aps.APSCloudPush.receivePayload(APSCloudPush.java:253) [ERROR] : TiApplication: at com.appcelerator.aps.GCMReceiver.onReceive(GCMReceiver.java:30) [ERROR] : TiApplication: at android.app.ActivityThread.handleReceiver(ActivityThread.java:2712) [ERROR] : TiApplication: ... 9 more

Comments

No comments

JSON Source