Bug 1451295 - Add a null check for mChannel r=michal

MozReview-Commit-ID: 7YYhFQuKsPk

--HG--
extra : rebase_source : 1fd1ed99038e5f785aac4e8bde40cecf71dd2cea
This commit is contained in:
Valentin Gosu 2018-04-05 17:47:14 +03:00
parent a68cfc710e
commit 0f7acc7f3e

View File

@ -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();
}