relayrides/pushy — pull request #101 by mdvorak (2014-06-27 10:45:26+00:00)
Title: Fixed NullPtrException on channelRegistered in ApnsConnection

Fixed possible NullPointerException on race condition, when channel is registered before field is set.
Not however, that using non-final field that is not even initialized in constructor is anti-pattern. There should be other object used for synchronize. If you wish to make this more correct fix, let me know. This fixes the problem thou.