You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ti...@apache.org on 2022/08/30 05:42:25 UTC
[curator] branch master updated: CURATOR-538: address from InetSocketAddress could be null as it means unresolved address (#433)
This is an automated email from the ASF dual-hosted git repository.
tison pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/curator.git
The following commit(s) were added to refs/heads/master by this push:
new b66240c8 CURATOR-538: address from InetSocketAddress could be null as it means unresolved address (#433)
b66240c8 is described below
commit b66240c80e8f289b701ecccc1febfd2f7a3f6aac
Author: Sergey Nuyanzin <se...@aiven.io>
AuthorDate: Tue Aug 30 07:42:19 2022 +0200
CURATOR-538: address from InetSocketAddress could be null as it means unresolved address (#433)
---
.../src/main/java/org/apache/curator/utils/Compatibility.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/curator-client/src/main/java/org/apache/curator/utils/Compatibility.java b/curator-client/src/main/java/org/apache/curator/utils/Compatibility.java
index 7c1406c1..4afc8e5a 100644
--- a/curator-client/src/main/java/org/apache/curator/utils/Compatibility.java
+++ b/curator-client/src/main/java/org/apache/curator/utils/Compatibility.java
@@ -113,7 +113,7 @@ public class Compatibility
log.error("Could not call addrField.get({})", server, e);
}
}
- return (address != null) ? address.getAddress().getHostAddress() : "unknown";
+ return (address != null && address.getAddress() != null) ? address.getAddress().getHostAddress() : "unknown";
}
public static boolean hasPersistentWatchers()