Skip to content

NPE at ConnectionView.java > getWireFormatInfo() #2203

Description

@jwh331

target source:
https://raw.githubusercontent.com/apache/activemq/refs/tags/activemq-5.19.8/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ConnectionView.java

issue:
At getWireFormatInfo() ,
If the "connection" is null, there would be some notice like this.

@OverRide
public String getWireFormatInfo() {
if (connection instanceof TransportConnection) {
WireFormatInfo info = ((TransportConnection) connection).getRemoteWireFormatInfo(); # << mod
return (info != null) ? info.toString() : "WireFormatInfo not available"; # << mod
}
return "WireFormatInfo not available";
}

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