Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 07C39109A8 for ; Wed, 2 Sep 2015 10:18:46 +0000 (UTC) Received: (qmail 18523 invoked by uid 500); 2 Sep 2015 10:18:45 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 18477 invoked by uid 500); 2 Sep 2015 10:18:45 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 18460 invoked by uid 99); 2 Sep 2015 10:18:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Sep 2015 10:18:45 +0000 Date: Wed, 2 Sep 2015 10:18:45 +0000 (UTC) From: "Semen Boikov (JIRA)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-1355) Potential NPE in CacheAffinityProxy MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Semen Boikov created IGNITE-1355: ------------------------------------ Summary: Potential NPE in CacheAffinityProxy Key: IGNITE-1355 URL: https://issues.apache.org/jira/browse/IGNITE-1355 Project: Ignite Issue Type: Bug Components: cache Affects Versions: ignite-1.4 Reporter: Semen Boikov Assignee: Yakov Zhdanov Fix For: ignite-1.5 NPE was observed on TC: {noformat} java.lang.NullPointerException at org.apache.ignite.internal.processors.affinity.GridAffinityProcessor$AffinityInfo.access$1800(GridAffinityProcessor.java:537) at org.apache.ignite.internal.processors.affinity.GridAffinityProcessor$CacheAffinityProxy.mapPartitionToPrimaryAndBackups(GridAffinityProcessor.java:879) at org.apache.ignite.testframework.junits.common.GridCommonAbstractTest.awaitPartitionMapExchange(GridCommonAbstractTest.java:423) at org.apache.ignite.internal.processors.cache.distributed.dht.IgniteCacheCrossCacheTxFailoverTest.crossCacheTxFailover(IgniteCacheCrossCacheTxFailoverTest.java:355) {noformat} As I see method CacheAffinityProxy.cache() can return null, but there are no checks for null. -- This message was sent by Atlassian JIRA (v6.3.4#6332)