String index out of bounds in javapns.notification.PushedNotification.toString line 251
Closed this issue · 3 comments
GoogleCodeExporter commented
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
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
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
- Changed state: Fixed
GoogleCodeExporter commented
The notification is sent successfully. I am using groovy.
Original comment by david.ma...@einsight.co.za
on 14 Oct 2014 at 6:08