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

Issue with ApiClient.Java constructors #25

Closed
PeterSherk opened this issue Jun 19, 2019 · 1 comment
Closed

Issue with ApiClient.Java constructors #25

PeterSherk opened this issue Jun 19, 2019 · 1 comment

Comments

@PeterSherk
Copy link

PeterSherk commented Jun 19, 2019

The second constructor for ApiClient should call the default constructor. If you use the second constructor:

public ApiClient(MerchantConfig merchantConfig) {
	this.merchantConfig = merchantConfig;

}

you then error out because things like httpClient and json aren't being initialized (NullPointerExceptions).

@gnongsie
Copy link
Contributor

gnongsie commented Aug 5, 2019

Hi,

Thank you for bringing this to our attention.

This issue has been addressed in the latest version of the SDK.
Kindly fetch the SDK from Maven (v0.0.12) and check again.

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

No branches or pull requests

3 participants