aerospike / aerospike-client-java

Aerospike Java Client Library
Other
236 stars 212 forks source link

Added null check for exceptions in Cluster::seedNodes() #81

Closed kennethjor closed 7 years ago

kennethjor commented 7 years ago

I was having trouble with the new async library and got the following error:

Caused by: java.lang.NullPointerException
        at com.aerospike.client.cluster.Cluster.seedNodes(Cluster.java:435)
        at com.aerospike.client.cluster.Cluster.tend(Cluster.java:336)
        at com.aerospike.client.cluster.Cluster.waitTillStabilized(Cluster.java:301)
        at com.aerospike.client.cluster.Cluster.initTendThread(Cluster.java:211)
        at com.aerospike.client.AerospikeClient.<init>(AerospikeClient.java:233)

It seems like it fails to connect, but doesn't populate the exceptions in some cases.

BrianNichols commented 7 years ago

Your change will be included in the next java client release.