hengsokchamroeun / javapns

Automatically exported from code.google.com/p/javapns
0 stars 0 forks source link

String index out of bounds in javapns.notification.PushedNotification.toString line 251 #219

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
String index out of range: 64. Stacktrace follows:
Message: String index out of range: 64
    Line | Method
->> 1907 | substring        in java.lang.String
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    251 | toString         in javapns.notification.PushedNotification

Original issue reported on code.google.com by david.ma...@einsight.co.za on 8 Oct 2014 at 3:33

GoogleCodeExporter commented 8 years ago
As far as I can tell, this would happen if you had an invalid token that is not 
exactly 64-bytes long.

Original comment by sype...@gmail.com on 11 Oct 2014 at 12:28

GoogleCodeExporter commented 8 years ago
Improvement in r402: PushedNotification.toString will now check if the token is 
valid before using it in the toString.  If it is not valid, toString will 
include an INVALID_TOKEN[...] indication.

Original comment by sype...@gmail.com on 13 Oct 2014 at 9:00

GoogleCodeExporter commented 8 years ago
The notification is sent successfully. I am using groovy.

Original comment by david.ma...@einsight.co.za on 14 Oct 2014 at 6:08