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

Fixing nullptr dereference in RewardsDOMHandler. #9622

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions browser/ui/webui/brave_rewards_page_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -612,11 +612,11 @@ void RewardsDOMHandler::SetExternalWalletType(const base::ListValue* args) {
}

void RewardsDOMHandler::OnExternalWalletTypeUpdated(
const ledger::type::Result result,
ledger::type::Result,
ledger::type::ExternalWalletPtr wallet) {
if (IsJavascriptAllowed()) {
CallJavascriptFunction("brave_rewards.externalWalletLogin",
base::Value(wallet->login_url));
base::Value(wallet ? wallet->login_url : ""));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we can drop the Result param completely if we're not using it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's required by GetExternalWalletCallback.

}
}

Expand Down