Skip to content

Commit

Permalink
Added a check to see if AppleNotification's DeviceToken is null or em…
Browse files Browse the repository at this point in the history
…pty, and if so, raise an exception. Closes Redth#211
  • Loading branch information
Redth committed Jun 18, 2013
1 parent a1e1d6b commit bc57cf4
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions PushSharp.Apple/AppleNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,6 @@ public byte[] ToBytes()

byte[] expiry = BitConverter.GetBytes(IPAddress.HostToNetworkOrder(expiryTimeStamp));

if (string.IsNullOrEmpty (this.DeviceToken))
throw new NotificationFailureException (2, this);

if (!IsValidDeviceRegistrationId ())
throw new NotificationFailureException (8, this);

byte[] deviceToken = new byte[DeviceToken.Length / 2];
for (int i = 0; i < deviceToken.Length; i++)
Expand Down

0 comments on commit bc57cf4

Please sign in to comment.