mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 1451295
- Add a null check for mChannel r=michal
MozReview-Commit-ID: 7YYhFQuKsPk --HG-- extra : rebase_source : 1fd1ed99038e5f785aac4e8bde40cecf71dd2cea
This commit is contained in:
parent
a68cfc710e
commit
0f7acc7f3e
@ -161,6 +161,10 @@ WyciwygChannelParent::RecvAppData(const IPC::SerializedLoadContext& loadContext,
|
||||
if (!SetupAppData(loadContext, parent))
|
||||
return IPC_FAIL_NO_REASON(this);
|
||||
|
||||
if (!mChannel) {
|
||||
return IPC_FAIL(this, "Should have a channel");
|
||||
}
|
||||
|
||||
mChannel->SetNotificationCallbacks(this);
|
||||
return IPC_OK();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user