ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: # ignite-929
Date Thu, 09 Jul 2015 12:54:36 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-929 3a99afe35 -> 637017ec3


# ignite-929


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/637017ec
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/637017ec
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/637017ec

Branch: refs/heads/ignite-929
Commit: 637017ec3a79e483dd92bb0d597f493852fd016f
Parents: 3a99afe
Author: sboikov <sboikov@gridgain.com>
Authored: Thu Jul 9 15:39:14 2015 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Thu Jul 9 15:39:14 2015 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/ignite/internal/IgniteKernal.java    | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/637017ec/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
index 024dc7b..aca938c 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java
@@ -2249,7 +2249,12 @@ public class IgniteKernal implements IgniteEx, IgniteMXBean, Externalizable
{
         guard();
 
         try {
-            return ctx.cache().publicJCache(name, false);
+            IgniteCache<K, V>  cache = ctx.cache().publicJCache(name, false);
+
+            if (cache == null)
+                throw new IllegalArgumentException("Cache is not started: " + name);
+
+            return cache;
         }
         catch (IgniteCheckedException e) {
             throw CU.convertToCacheException(e);


Mime
View raw message