Skip to content

空指针异常 #62

@sky007z

Description

@sky007z
BrokerTraffic clusterTraffic = new BrokerTraffic();
    for (BrokerGroup brokerGroup : brokerGroupList) {
        BrokerTraffic brokerTraffic = brokerGroup.getMaster().getBrokerTraffic();
        if (brokerTraffic == null) {
            continue;
        }
        clusterTraffic.add(brokerTraffic);
    }

查询集群拓扑时brokerGroup.getMaster()为null导致空指针,这个一般什么原因会导致Master为空

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions