Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Commit

Permalink
Fixed incorrect cast error.
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeParrishMSFT committed Jul 8, 2021
1 parent 645d8c0 commit 3919cf7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public static CompletableFuture<PromptRecognizerResult<TokenResponse>> recognize
Object tokenResponseObject = turnContext.getActivity().getValue();
TokenResponse token = null;
if (tokenResponseObject != null) {
token = (TokenResponse) tokenResponseObject;
token = Serialization.getAs(tokenResponseObject, TokenResponse.class);
}
result.setSucceeded(true);
result.setValue(token);
Expand Down

0 comments on commit 3919cf7

Please sign in to comment.