sgulseth / gcm

Automatically exported from code.google.com/p/gcm
Apache License 2.0
0 stars 0 forks source link

send() throws NPE if payload has data with null value #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Here's the stack trace:

java.lang.NullPointerException
    at java.net.URLEncoder.encode(URLEncoder.java:205)
    at com.google.android.gcm.server.Sender.sendNoRetry(Sender.java:166)
    at com.google.android.gcm.server.Sender.send(Sender.java:121)

Sender should either check if the value is null, or Message's addData() should 
not allow it...

Original issue reported on code.google.com by felip...@android.com on 1 Aug 2012 at 8:13

GoogleCodeExporter commented 9 years ago
Fixed by http://code.google.com/p/gcm/source/detail?r=72132950b9ea ; will be 
available on next release.

Original comment by felip...@android.com on 22 Aug 2012 at 8:50