Commit b31f0748c820aa3e426b50ca6ae1a20de1098ea0

Authored by Sergey Matvienko
1 parent e264f7b8

DefaultTbCoreToTransportService - skipping message without nodeId

... ... @@ -54,6 +54,10 @@ public class DefaultTbCoreToTransportService implements TbCoreToTransportService
54 54
55 55 @Override
56 56 public void process(String nodeId, ToTransportMsg msg, Runnable onSuccess, Consumer<Throwable> onFailure) {
  57 + if (nodeId == null || nodeId.isEmpty()){
  58 + log.trace("process: skipping message without nodeId [{}], (ToTransportMsg) msg [{}]", nodeId, msg);
  59 + return;
  60 + }
57 61 TopicPartitionInfo tpi = partitionService.getNotificationsTopic(ServiceType.TB_TRANSPORT, nodeId);
58 62 UUID sessionId = new UUID(msg.getSessionIdMSB(), msg.getSessionIdLSB());
59 63 log.trace("[{}][{}] Pushing session data to topic: {}", tpi.getFullTopicName(), sessionId, msg);
... ...