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.
1 parent d6c8029 commit 5081e60Copy full SHA for 5081e60
xds/src/main/java/io/grpc/xds/GcpAuthenticationFilter.java
@@ -72,8 +72,8 @@ public ConfigOrError<? extends FilterConfig> parseFilterConfig(Message rawProtoM
72
73
long cacheSize = 10;
74
// Validate cache_config
75
- TokenCacheConfig cacheConfig = gcpAuthnProto.getCacheConfig();
76
- if (cacheConfig != null) {
+ if (gcpAuthnProto.hasCacheConfig()) {
+ TokenCacheConfig cacheConfig = gcpAuthnProto.getCacheConfig();
77
cacheSize = cacheConfig.getCacheSize().getValue();
78
if (cacheSize == 0) {
79
return ConfigOrError.fromError(
0 commit comments