Skip to content

Commit

Permalink
Bug 1872834 - Add missing null check to FilePickerParent::RecvClose. …
Browse files Browse the repository at this point in the history
…r=canadahonk

Differential Revision: https://phabricator.services.mozilla.com/D197571
  • Loading branch information
choller committed Jan 3, 2024
1 parent c1faf7e commit ac85178
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dom/ipc/FilePickerParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ mozilla::ipc::IPCResult FilePickerParent::RecvOpen(
}

mozilla::ipc::IPCResult FilePickerParent::RecvClose() {
mFilePicker->Close();
if (mFilePicker) {
mFilePicker->Close();
}
return IPC_OK();
}

Expand Down

0 comments on commit ac85178

Please sign in to comment.