atmosphere-extensions icon indicating copy to clipboard operation
atmosphere-extensions copied to clipboard

check null pointer message

Open marcodifalco opened this issue 3 years ago • 0 comments

In this method

 @Override
    public void outgoingBroadcast(Object message) {
        logger.trace("{} outgoingBroadcast {}", topic, message);

        // TODO: Prevent message round trip.

        producer.send(new ProducerRecord<String, String>(topic, message.toString()));
    }

There are not a check if 'message' is null. Without this check it's impossible use the lib. I make override class, and override method, and i add if (message!= null)``

marcodifalco avatar Dec 24 '20 15:12 marcodifalco