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

java.lang.NullPointerException: Attempt to invoke virtual method 'void com.braintreepayments.api.internal.BraintreeHttpClient.get(java.lang.String, com.braintreepayments.api.interfaces.HttpResponseCallback)' on a null object reference #105

Closed
brunobar79 opened this issue Jun 7, 2016 · 2 comments

Comments

@brunobar79
Copy link

brunobar79 commented Jun 7, 2016

Similar to #101 . Only on my release build (fresh install) I always get the following error:

E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules Process: com.myapp, PID: 11127 java.lang.NullPointerException: Attempt to invoke virtual method 'void com.braintreepayments.api.internal.BraintreeHttpClient.get(java.lang.String, com.braintreepayments.api.interfaces.HttpResponseCallback)' on a null object reference at com.braintreepayments.api.ConfigurationManager.getConfiguration(ConfigurationManager.java:50) at com.braintreepayments.api.BraintreeFragment.fetchConfiguration(BraintreeFragment.java:482) at com.braintreepayments.api.BraintreeFragment.waitForConfiguration(BraintreeFragment.java:528) at com.braintreepayments.api.TokenizationClient.tokenize(TokenizationClient.java:38) at com.braintreepayments.api.Card.tokenize(Card.java:29) at com.myapp.braintree.Braintree.checkoutWithCreditCard(Braintree.java:100) at java.lang.reflect.Method.invoke(Native Method) ... ... ...

Any idea what's going on?
Thanks!

@lkorth
Copy link
Member

lkorth commented Jun 7, 2016

#101 is a different issue. This is caused by trying to create a payment method before the fragment has been attached to the activity. We're working on a fix for this.

@lkorth lkorth closed this as completed in 810baee Jun 7, 2016
@lkorth
Copy link
Member

lkorth commented Jun 7, 2016

@brunobar79: thanks for the report. I've committed a fix that will go out in the next release.

If you'd like to be notified when new releases go out, please feel free to subscribe to our Google Groups mailing list.

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

2 participants