Closed yimiaoxiehou closed 1 year ago
ConsulReactiveDiscoveryClient.java
ConsulReactiveDiscoveryClient.class private ServiceInstance mapToServiceInstance(HealthService service, String serviceId) { String host = findHost(service); Map<String, String> metadata = getMetadata(service, properties.isTagsAsMetadata()); boolean secure = false; if (metadata.containsKey("secure")) { // this will make a NPE secure = Boolean.parseBoolean(metadata.get("secure")); } return new DefaultServiceInstance(service.getService().getId(), serviceId, host, service.getService().getPort(), secure, metadata); }
this bug is same as #719
@spencergibb
ConsulServerList.class #transformResponse getMetaData also make NPE
2.x is no longer supported. Please upgrade to 3.1.x or 4.0.x where the problem is fixed.
ConsulReactiveDiscoveryClient.java
this bug is same as #719