Skip to content

Commit

Permalink
Fix NPE when BraintreeFragment has not been attached to an Activity
Browse files Browse the repository at this point in the history
Fixes #105
  • Loading branch information
lkorth committed Jun 7, 2016
1 parent 1f954c6 commit 810baee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ protected void setConfigurationErrorListener(BraintreeResponseListener<Exception
}

protected void waitForConfiguration(final ConfigurationListener listener) {
if (getConfiguration() == null && !ConfigurationManager.isFetchingConfiguration() && mAuthorization != null) {
if (getConfiguration() == null && !ConfigurationManager.isFetchingConfiguration() && mHttpClient != null) {
fetchConfiguration();
}

Expand Down

0 comments on commit 810baee

Please sign in to comment.