提交 adc29293 编写于 作者: L lican 提交者: wu-sheng

fix judge error (#1116)

上级 71970306
......@@ -32,6 +32,7 @@ import org.apache.skywalking.apm.collector.core.util.Const;
import org.apache.skywalking.apm.collector.storage.table.register.NetworkAddress;
import static java.util.Objects.isNull;
import static java.util.Objects.nonNull;
/**
* @author peng-yongsheng
......@@ -122,7 +123,7 @@ public class NetworkAddressIDService implements INetworkAddressIDService {
private boolean compare(int addressId, int spanLayer, int serverType) {
NetworkAddress networkAddress = networkAddressCacheService.getAddress(addressId);
if (isNull(networkAddress)) {
if (nonNull(networkAddress)) {
return spanLayer == networkAddress.getSrcSpanLayer() && serverType == networkAddress.getServerType();
}
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册