Skip to content

Avoid NPE in OAuth updateAccessToken()#57

Merged
mmallis87 merged 5 commits intodocusign:masterfrom
psytester:patch-1
Feb 6, 2018
Merged

Avoid NPE in OAuth updateAccessToken()#57
mmallis87 merged 5 commits intodocusign:masterfrom
psytester:patch-1

Conversation

@psytester
Copy link
Copy Markdown
Contributor

@psytester psytester commented Feb 6, 2018

Avoid NullPointerException in case accessTokenResponse does not contain "access_token" or "expires_in".
For sure this should never happen, but it's part of negativ test while API integration and makes it more robust.
The additional check was copied from ApiClient.configureJWTAuthorizationFlow()

Avoid NullPointerException in case accessTokenResponse does *not* contain "access_token" or  "expires_in".
For sure this should never happen, but it's part of  negativ test while API integration and makes it more robust.
The additional check was copied from ApiClient.configureJWTAuthorizationFlow()
@psytester
Copy link
Copy Markdown
Contributor Author

My last commit 3f8db33 is the final one with single check per object. I hope it satisfy your coding styles.

@mmallis87 mmallis87 merged commit b4c24b0 into docusign:master Feb 6, 2018
@mmallis87
Copy link
Copy Markdown
Contributor

@psytester thank you for submitting this PR!

@psytester psytester deleted the patch-1 branch March 23, 2018 20:16
mmallis87 added a commit that referenced this pull request Aug 29, 2019
Avoid NPE in OAuth updateAccessToken()
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