Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A63FE1800E for ; Thu, 23 Apr 2015 06:05:30 +0000 (UTC) Received: (qmail 8712 invoked by uid 500); 23 Apr 2015 06:05:30 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 8665 invoked by uid 500); 23 Apr 2015 06:05:30 -0000 Mailing-List: contact commits-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list commits@ignite.incubator.apache.org Received: (qmail 8643 invoked by uid 99); 23 Apr 2015 06:05:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2015 06:05:30 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [54.191.145.13] (HELO mx1-us-west.apache.org) (54.191.145.13) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2015 06:05:21 +0000 Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 6FDC4257F1 for ; Thu, 23 Apr 2015 06:05:01 +0000 (UTC) Received: (qmail 7477 invoked by uid 99); 23 Apr 2015 06:05:01 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Apr 2015 06:05:01 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 45A9BE10A4; Thu, 23 Apr 2015 06:05:01 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sboikov@apache.org To: commits@ignite.incubator.apache.org Date: Thu, 23 Apr 2015 06:05:09 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [10/50] incubator-ignite git commit: ignite-762 NPE at org.apache.ignite.internal.processors.cache.GridCacheSwapManager.swapSize X-Virus-Checked: Checked by ClamAV on apache.org 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/aaa5ceef Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/aaa5ceef Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/aaa5ceef Branch: refs/heads/ignite-80 Commit: aaa5ceef5a46b1bc84c03d9fdfe23ec7f86b7023 Parents: d0e606f Author: agura Authored: Fri Apr 17 15:48:00 2015 +0300 Committer: agura Committed: Mon Apr 20 17:55:40 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/aaa5ceef/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 bb49fed..11fa261 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 @@ -660,7 +660,7 @@ public class GridDiscoveryManager extends GridManagerAdapter { Map 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());