You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/10/01 14:39:27 UTC

[jira] [Commented] (IGNITE-1355) Potential NPE in CacheAffinityProxy

    [ 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:

    https://github.com/apache/ignite/pull/123

    IGNITE-1355: Fix Potential NPE in CacheAffinityProxy

    Fix Potential NPE in CacheAffinityProxy
    
    https://issues.apache.org/jira/browse/IGNITE-1355

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:

    https://github.com/apache/ignite/pull/123.patch

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 <as...@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 null.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)