You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by nr...@apache.org on 2018/01/11 21:46:06 UTC
[geode] branch feature/GEODE-3583-storage updated: GEODE-4196: Fix
incorrect creation of CacheClosedException
This is an automated email from the ASF dual-hosted git repository.
nreich pushed a commit to branch feature/GEODE-3583-storage
in repository https://gitbox.apache.org/repos/asf/geode.git
The following commit(s) were added to refs/heads/feature/GEODE-3583-storage by this push:
new 0cd1436 GEODE-4196: Fix incorrect creation of CacheClosedException
new 283c16e Merge branch 'feature/GEODE-3583-storage' of ssh://github.com/apache/geode into feature/GEODE-3583-storage
0cd1436 is described below
commit 0cd1436c1969f9ff1d1176912a72c9b240c70947
Author: Nick Reich <nr...@pivotal.io>
AuthorDate: Thu Jan 11 13:43:20 2018 -0800
GEODE-4196: Fix incorrect creation of CacheClosedException
---
geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java b/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
index 0dc25dd..5857927 100644
--- a/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
+++ b/geode-core/src/main/java/org/apache/geode/cache/CacheFactory.java
@@ -287,7 +287,7 @@ public class CacheFactory {
private static Cache basicGetInstancePart2(DistributedSystem system, boolean closeOk) {
InternalCache instance = GemFireCacheImpl.getInstance();
if (instance == null) {
- throw instance.getCacheClosedException(
+ throw new CacheClosedException(
LocalizedStrings.CacheFactory_A_CACHE_HAS_NOT_YET_BEEN_CREATED.toLocalizedString());
} else {
if (instance.isClosed() && !closeOk) {
--
To stop receiving notification emails like this one, please contact
['"commits@geode.apache.org" <co...@geode.apache.org>'].