Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch get() with null policy results in Null Pointer Exception #7

Closed
ersenal opened this issue Aug 16, 2014 · 1 comment
Closed

Batch get() with null policy results in Null Pointer Exception #7

ersenal opened this issue Aug 16, 2014 · 1 comment

Comments

@ersenal
Copy link

ersenal commented Aug 16, 2014

AerospikeClient#get(Policy policy, Key[] keys, String... binNames) operation throws a null pointer exception when I pass in a null policy. This behaviour seems to conflict with its documentation:

@param policy               generic configuration parameters, pass in null for defaults

This behaviour may be present in other batch operations using the BatchExecutor:

  • exists(Policy policy, Key[] keys)
  • get(Policy policy, Key[] keys)
  • getHeader(Policy policy, Key[] keys)

The Exception:
com.aerospike.client.AerospikeException: java.lang.NullPointerException at com.aerospike.client.command.BatchExecutor.<init>(BatchExecutor.java:86)

@ersenal
Copy link
Author

ersenal commented Sep 10, 2014

This seems to have been fixed with the latest version. Closing.

@ersenal ersenal closed this as completed Sep 10, 2014
ijusti pushed a commit to ijusti/aerospike-client-java that referenced this issue Mar 28, 2023
ijusti pushed a commit to ijusti/aerospike-client-java that referenced this issue Mar 28, 2023
…onstructor-update-logging

AerospikeTemplate cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant