This is an automated email from the ASF dual-hosted git repository.
sai_boorlagadda pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/develop by this push:
new 4bc6c5a GEODE-4863: refactor jdbc commands to use this public cluster
configuration api (#1802)
4bc6c5a is described below
commit 4bc6c5a9b9abe9cf0e3c8e68802262efcdb9c735
Author: Sai Boorlagadda <[email protected]>
AuthorDate: Fri Apr 13 19:00:56 2018 -0700
GEODE-4863: refactor jdbc commands to use this public cluster configuration
api (#1802)
fix a NullPointer in CCService.getCustomCacheElement
---
.../java/org/apache/geode/distributed/ClusterConfigurationService.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/geode-core/src/main/java/org/apache/geode/distributed/ClusterConfigurationService.java
b/geode-core/src/main/java/org/apache/geode/distributed/ClusterConfigurationService.java
index f882430..751f48e 100644
---
a/geode-core/src/main/java/org/apache/geode/distributed/ClusterConfigurationService.java
+++
b/geode-core/src/main/java/org/apache/geode/distributed/ClusterConfigurationService.java
@@ -65,6 +65,9 @@ public interface ClusterConfigurationService {
default <T extends CacheElement> T getCustomCacheElement(String group,
String id,
Class<T> classT) {
CacheConfig cacheConfig = getCacheConfig(group);
+ if (cacheConfig == null) {
+ return null;
+ }
return findCustomCacheElement(cacheConfig, id, classT);
}
--
To stop receiving notification emails like this one, please contact
[email protected].