Typo in utilities class

270 views
Skip to first unread message

Alex

unread,
Feb 29, 2012, 3:05:46 PM2/29/12
to Java client for Apple Push Notification service (APNs)
condition that starts on line 117
if (r.getDeviceConnectionStatus() != null
&& !
r.getNotificationStatus().equals(headerValue(response, "X-
DeviceConnectionStatus"))) {
continue;
}

should probably be changed to
if (r.getDeviceConnectionStatus() != null
&& !
r.getDeviceConnectionStatus().equals(headerValue(response, "X-
DeviceConnectionStatus"))) {
continue;
}

just a little typo, but was casing a null pointer down the road.

Jakob Jenkov

unread,
Feb 29, 2012, 4:15:14 PM2/29/12
to java-apn...@googlegroups.com

Alex

unread,
Mar 2, 2012, 8:33:24 AM3/2/12
to Java client for Apple Push Notification service (APNs)
com.notnoop.mpns.internal.Utilities class.
public static MpnsResponse logicalResponseFor method

Also,
I noticed that this method returns null that causes NPE down the road
even though message was sent successfully, and device received the
push.

Many thanks,

Alex

On Feb 29, 4:15 pm, Jakob Jenkov <ja...@jenkov.com> wrote:
> Where is this from?
>
Reply all
Reply to author
Forward
0 new messages