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-762 NPE at org.apache.ignite.internal.processors.cache.GridCacheSwapManager.swapSize
Date Fri, 17 Apr 2015 12:49:29 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-762 [created] b26a5d67c


ignite-762 NPE at org.apache.ignite.internal.processors.cache.GridCacheSwapManager.swapSize


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

Branch: refs/heads/ignite-762
Commit: b26a5d67cc5a4065ebb71196b698b285a6134272
Parents: 357a715
Author: agura <agura@gridgain.com>
Authored: Fri Apr 17 15:48:00 2015 +0300
Committer: agura <agura@gridgain.com>
Committed: Fri Apr 17 15:48:00 2015 +0300

----------------------------------------------------------------------
 .../ignite/internal/managers/discovery/GridDiscoveryManager.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/b26a5d67/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
index e7c86f5..54796b3 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java
@@ -657,7 +657,7 @@ public class GridDiscoveryManager extends GridManagerAdapter<DiscoverySpi>
{
                 Map<Integer, CacheMetrics> metrics = null;
 
                 for (GridCacheAdapter<?, ?> cache : caches) {
-                    if (cache.configuration().isStatisticsEnabled()) {
+                    if (cache.context().started() && cache.configuration().isStatisticsEnabled())
{
                         if (metrics == null)
                             metrics = U.newHashMap(caches.size());
 


Mime
View raw message