Skip to content

Commit c064070

Browse files
authored
[#4910] fixed registration center response exception cause nullPointerException (#4911)
1 parent 8c6d65a commit c064070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterRegistration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ public void execute() {
291291
if (failedCount == 2) {
292292
LOGGER.error("send heart failed, and will try again.", e);
293293
} else {
294-
LOGGER.warn("send heart failed, and will try again. message [{}]", e.getCause().getMessage());
294+
LOGGER.warn("send heart failed, and will try again. message [{}]", e.getMessage());
295295
}
296296
eventBus.post(new HeartBeatEvent(false, microservice, microserviceInstance));
297297
startTask(new BackOffSleepTask(failedCount + 1, new SendHeartBeatTask(failedCount + 1)));

0 commit comments

Comments
 (0)