mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
Bug 1206894 follow-up: Add a null check
This commit is contained in:
parent
8e1b61b7aa
commit
46ece311dc
@ -66,10 +66,12 @@ InterceptedChannelBase::DoNotifyController()
|
||||
rv = ResetInterception();
|
||||
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Failed to resume intercepted network request");
|
||||
}
|
||||
rv = dispatcher->Dispatch();
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
rv = ResetInterception();
|
||||
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Failed to resume intercepted network request");
|
||||
if (dispatcher) {
|
||||
rv = dispatcher->Dispatch();
|
||||
if (NS_WARN_IF(NS_FAILED(rv))) {
|
||||
rv = ResetInterception();
|
||||
NS_WARN_IF_FALSE(NS_SUCCEEDED(rv), "Failed to resume intercepted network request");
|
||||
}
|
||||
}
|
||||
mController = nullptr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user