We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5075840 + f10be52 commit 2a6e2e5Copy full SHA for 2a6e2e5
ribbon-core/src/main/java/com/netflix/client/config/ReloadableClientConfig.java
@@ -309,7 +309,11 @@ private <T> Optional<T> resolverScopedProperty(IClientConfigKey<T> key) {
309
310
@Override
311
public <T> Optional<T> getIfSet(IClientConfigKey<T> key) {
312
- return Optional.ofNullable((T)internalProperties.get(key));
+ Optional<T> value = (Optional<T>)internalProperties.get(key);
313
+ if (value == null) {
314
+ return Optional.empty();
315
+ }
316
+ return value;
317
}
318
319
private <T> T resolveValueToType(IClientConfigKey<T> key, Object value) {
0 commit comments