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

Allowing inner Exception to be null in AerospikeException constructor #102

Merged

Conversation

m-wilmo
Copy link
Contributor

@m-wilmo m-wilmo commented Feb 14, 2024

Several AerospikeException.Timeout constructors take an optional inner exception, by default null.

However they use this AerospikeException constructor for their base classes, which can't deal with a null Exception argument.

Right now, using these AerospikeException.Timeout constructors without specifying an Inner Exception will result in an "Object reference not set to an instance of an object" error if no inner exception is given.

This happens at several places at least within Aerospike.Client.AsyncCommand.cs.

Several AerospikeException.Timeout constructors take an optional null inner exception and use this constructor.

Right now, using these AerospikeException.Timeout constructors will result in an "Object reference not set to an instance of an object" error if no inner exception is given.
@m-wilmo
Copy link
Contributor Author

m-wilmo commented Feb 23, 2024

Hello @shannonklaus, how are you ?

Could I ask for a review on this ?

Thank you for your time !

@shannonklaus shannonklaus changed the base branch from master to stage February 23, 2024 16:36
@shannonklaus shannonklaus merged commit 0709485 into aerospike:stage Feb 23, 2024
3 checks passed
@shannonklaus
Copy link
Collaborator

Thank you for your pull request. This change will be included in the next release, which I expect will be in a few weeks or so.

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

Successfully merging this pull request may close these issues.

2 participants