Skip to content

Commit

Permalink
SafetyNet: Handle null RecaptchaResultData
Browse files Browse the repository at this point in the history
Fixes #1813
  • Loading branch information
mar-v-in committed Dec 1, 2022
1 parent ee997ba commit 9673aa2
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,11 @@ public void onRecaptchaResult(Status status, RecaptchaResultData recaptchaResult
response.setResult(new SafetyNetApi.RecaptchaTokenResult() {
@Override
public String getTokenResult() {
return recaptchaResultData.token;
if (recaptchaResultData != null) {
return recaptchaResultData.token;
} else {
return null;
}
}

@Override
Expand Down

0 comments on commit 9673aa2

Please sign in to comment.