Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ protected void initServiceInterfaceConfig() {
}
}
}
if (ref == null) {
throw new IllegalArgumentException("ProviderConfig ref is null");
}
Preconditions.checkArgument(getRef() != null, "ServiceImpl is null");
// 2) Ensure serviceInterface
if (serviceInterface == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public static String getHostIp() {
try {
InetAddress address = InetAddress.getLocalHost();
// if it is a loopback address, get the IPv4 address
if (address.isLoopbackAddress()) {
if (address != null && address.isLoopbackAddress()) {
address = getInet4Address();
}
if (address != null) {
Expand Down
8 changes: 4 additions & 4 deletions trpc-dependencies/trpc-dependencies-bom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<commons.pool2.version>2.3</commons.pool2.version>
<commons.io.version>2.15.1</commons.io.version>
<commons.text.version>1.10.0</commons.text.version>
<commons.beanutils.version>1.9.4</commons.beanutils.version>
<commons.beanutils.version>1.11.0</commons.beanutils.version>
<nacos.config.sdk.version>0.2.12</nacos.config.sdk.version>
<curator.version>5.0.0</curator.version>
<consul-api.version>1.4.5</consul-api.version>
Expand All @@ -86,11 +86,11 @@
<httpcore.version>4.4.15</httpcore.version>
<httpcore5.version>5.2.1</httpcore5.version>
<hutool.all.version>5.8.28</hutool.all.version>
<jackson.version>2.15.0-rc2</jackson.version>
<jackson.version>2.15.4</jackson.version>
<javax.ws.rs.version>2.1.1</javax.ws.rs.version>
<javax.validation.version>2.0.1.Final</javax.validation.version>
<jetty.alpn.boot.version>8.1.13.v20181017</jetty.alpn.boot.version>
<jetty.version>9.4.55.v20240627</jetty.version>
<jetty.version>9.4.57.v20241219</jetty.version>
<joda-time.version>2.7</joda-time.version>
<jprotobuf.version>2.4.14</jprotobuf.version>
<junit.version>4.13.2</junit.version>
Expand Down Expand Up @@ -138,7 +138,7 @@
<snappy.version>1.1.10.4</snappy.version>
<spring.version>5.3.27</spring.version>
<springboot.version>2.7.12</springboot.version>
<spring.cloud.gateway.version>3.1.5</spring.cloud.gateway.version>
<spring.cloud.gateway.version>3.1.10</spring.cloud.gateway.version>
<transmittable.version>2.12.4</transmittable.version>
<zookeeper.version>3.8.4</zookeeper.version>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@

package com.tencent.trpc.logger.admin;

import static com.tencent.trpc.core.exception.ErrorCode.TRPC_INVOKE_UNKNOWN_ERR;

import com.tencent.trpc.core.exception.TRpcException;
import org.slf4j.LoggerFactory;

public class LoggerProcessUnitFactory {
Expand All @@ -37,6 +40,9 @@ public static synchronized LoggerProcessUnit getLoggerProcessUnit() {
break;
default:
}
if (loggerProcessUnit == null) {
throw TRpcException.newException(TRPC_INVOKE_UNKNOWN_ERR, 0, "LoggerFactoryEnum is not support");
}
loggerProcessUnit.init();
return loggerProcessUnit;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public TrpcGatewayClient(Route route) {
@Override
public void open(Route route) {
Preconditions.checkNotNull(route, "Create GenericClient fail: Route is null! Please check route config!");
if (route != null && route.getUri() != null) {
if (route.getUri() != null) {
callInfo = parseCallInfo(route.getUri().getSchemeSpecificPart());
} else {
callInfo = new CallInfo();
Expand Down