Skip to content

check null pointer message #253

Description

@marcodifalco

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)``

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions