You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Noam Liran (JIRA)" <ji...@apache.org> on 2015/12/17 12:39:46 UTC

[jira] [Created] (IGNITE-2192) Calling forOldest() on an empty cluster group raises a NullPointerException

Noam Liran created IGNITE-2192:
----------------------------------

             Summary: Calling forOldest() on an empty cluster group raises a NullPointerException
                 Key: IGNITE-2192
                 URL: https://issues.apache.org/jira/browse/IGNITE-2192
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 1.5, 1.4
            Reporter: Noam Liran


Easy to reproduce and fix:
{code}
import org.apache.ignite.Ignite;
import org.apache.ignite.Ignition;
import org.apache.ignite.cluster.ClusterGroup;
import org.apache.ignite.configuration.IgniteConfiguration;

/**
 * Created by noliran on 17/12/2015.
 */
public class Main {
    public static void main(String[] args) throws InterruptedException {
        Ignite ignite = Ignition.start(new IgniteConfiguration());
        ClusterGroup clusterGroup = ignite.cluster().forAttribute("nonexistent", "value").forOldest();
        // Exception was just raised
    }
}
{code}





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