diff --git a/mobile/android/components/PromptService.js b/mobile/android/components/PromptService.js index fe832a8ff37..22049583dff 100644 --- a/mobile/android/components/PromptService.js +++ b/mobile/android/components/PromptService.js @@ -156,7 +156,8 @@ Prompt.prototype = { if (aCheckMsg) aInputs.push({ type: "checkbox", label: PromptUtils.cleanUpLabel(aCheckMsg), checked: aCheckState.value }); - PromptUtils.fireDialogEvent(this._domWin, "DOMWillOpenModalDialog"); + if (this._domWin) + PromptUtils.fireDialogEvent(this._domWin, "DOMWillOpenModalDialog"); let msg = { type: "Prompt:Show" }; if (aTitle) msg.title = aTitle;