Atmosphere/atmosphere — Issue #117: NPE when Entry.originalMessage is null
Author: azell
Created: 2011-12-09 02:12:27+00:00
State: open

The second constructor for Entry() does not take originalMessage as an argument. As a result, the member will be null.

DefaultBroadcaster.push() has the following code:
entry.originalMessage = (entry.originalMessage != entry.message ? translate(entry.originalMessage) : finalMsg);

It does not check whether entry.originalMessage is null before passing it to translate(). translate() then throws a NullPointerException:
if (Callable.class.isAssignableFrom(msg.getClass())) {

as msg is null.