diff --git a/eureka-core/src/main/java/com/netflix/eureka/cluster/ReplicationTaskProcessor.java b/eureka-core/src/main/java/com/netflix/eureka/cluster/ReplicationTaskProcessor.java index 961385b31a..01e28fc32e 100644 --- a/eureka-core/src/main/java/com/netflix/eureka/cluster/ReplicationTaskProcessor.java +++ b/eureka-core/src/main/java/com/netflix/eureka/cluster/ReplicationTaskProcessor.java @@ -193,11 +193,13 @@ private static boolean isNetworkConnectException(Throwable e) { private static boolean maybeReadTimeOut(Throwable e) { do { if (IOException.class.isInstance(e)) { - String message = e.getMessage().toLowerCase(); - Matcher matcher = READ_TIME_OUT_PATTERN.matcher(message); - if(matcher.find()) { - return true; - } + String message = e.getMessage(); + if (message != null) { + Matcher matcher = READ_TIME_OUT_PATTERN.matcher(message.toLowerCase()); + if(matcher.find()) { + return true; + } + } } e = e.getCause(); } while (e != null);