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 2018/10/04 21:47:00 UTC

[jira] [Commented] (IGNITE-9796) NPE if you call array() method on empty GridLongList

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

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

GitHub user EdShangGG opened a pull request:

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

    IGNITE-9796 NPE if you call array() method on empty GridLongList

    

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

    $ git pull https://github.com/gridgain/apache-ignite ignite-9796

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

    https://github.com/apache/ignite/pull/4917.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 #4917
    
----
commit 534a0b0f4b7cd570fd10fcf69d8dcaf8fd2b944b
Author: Eduard Shangareev <es...@...>
Date:   2018-10-04T21:45:42Z

    IGNITE-9796 NPE if you call array() method on empty GridLongList

----


> NPE if you call array() method on empty GridLongList
> ----------------------------------------------------
>
>                 Key: IGNITE-9796
>                 URL: https://issues.apache.org/jira/browse/IGNITE-9796
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Eduard Shangareev
>            Assignee: Eduard Shangareev
>            Priority: Major
>
> {code}
>     /**
>      *
>      */
>     public void testArray() {
>         GridLongList list = new GridLongList();
>         long[] array = list.array();
>         assertNotNull(array);
>         assertEquals(0, array.length);
> }
> {code}
> That is it, current version of GridLongList would cause NPE.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)