ARTEMIS-1769 mitigate null

This commit is contained in:
Justin Bertram 2024-05-02 09:45:04 -05:00 committed by Robbie Gemmell
parent d7a7116a4c
commit b209dd013d
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public class SessionView extends ActiveMQAbstractView<ServerSession> {
.add(SessionField.CONSUMER_COUNT.getName(), session.getConsumerCount())
.add(SessionField.PRODUCER_COUNT.getName(), session.getProducerCount())
.add(SessionField.CONNECTION_ID.getName(), session.getConnectionID().toString())
.add(SessionField.CLIENT_ID.getName(), session.getRemotingConnection().getClientID());
.add(SessionField.CLIENT_ID.getName(), session.getRemotingConnection().getClientID() != null ? session.getRemotingConnection().getClientID() : "");
return obj;
}