You keep a weak reference to a listener. Could webServerNotificationListener be null here ?