ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-1355) Potential NPE in CacheAffinityProxy
Date Thu, 01 Oct 2015 12:39:27 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-1355?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14939762#comment-14939762

ASF GitHub Bot commented on IGNITE-1355:

GitHub user ashutakGG opened a pull request:


    IGNITE-1355: Fix Potential NPE in CacheAffinityProxy

    Fix Potential NPE in CacheAffinityProxy

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/ashutakGG/incubator-ignite ignite-1355-NPE-cache

Alternatively you can review and apply these changes as the patch at:


To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #123
commit 846ecbcc0603b65a975f5f9abf8449e45350cc44
Author: ashutak <ashutak@gridgain.com>
Date:   2015-10-01T12:35:51Z

    IGNITE-1355: Fix Potential NPE in CacheAffinityProxy


> 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: Artem Shutak
>            Priority: Critical
>             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

This message was sent by Atlassian JIRA

View raw message