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

ASF GitHub Bot commented on IGNITE-1355:
----------------------------------------

GitHub user ashutakGG opened a pull request:

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

    IGNITE-1355 Potential NPE in CacheAffinityProxy (throw Exception if cache 
doesn't exist)

    https://issues.apache.org/jira/browse/IGNITE-1355 (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-exception

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

    https://github.com/apache/ignite/pull/263.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 #263
    
----
commit 2c9efe004d0264693263d57b77a1265e702e4abe
Author: ashutak <[email protected]>
Date:   2015-11-24T14:21:21Z

    partial fix

commit 4ba864250679597b332ba28f5488f199e72b0f03
Author: ashutak <[email protected]>
Date:   2015-11-25T10:40:19Z

    map-methods

commit 05730721975f1eaab9fe63d3400abd1bead3fb5e
Author: ashutak <[email protected]>
Date:   2015-11-25T10:58:14Z

    javadoc.

----


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

Reply via email to