-
Notifications
You must be signed in to change notification settings - Fork 904
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
Fixing nullptr
dereference in RewardsDOMHandler
.
#9622
Conversation
nullptr
dereference in RewardsDOMHandler.
nullptr
dereference in RewardsDOMHandler.nullptr
dereference in RewardsDOMHandler
.
ledger::type::ExternalWalletPtr wallet) { | ||
if (IsJavascriptAllowed()) { | ||
CallJavascriptFunction("brave_rewards.externalWalletLogin", | ||
base::Value(wallet->login_url)); | ||
base::Value(wallet ? wallet->login_url : "")); |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
.
Verification in progress with
Verified STR from
example logs:
example logs:
Since you are now in Once brave/brave-browser#17265 is fixed, you will be able to get to the UI that caused the crash in a close approximation of this scenario. Since I can't quite check that the crash doesn't occur in this scenario at present, I took these additional steps:
Confirming the above with @szilardszaloki |
Resolves brave/brave-browser#17259.
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
,npm run lint
,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on
Test Plan:
See
Steps to Reproduce
here.