From 93799e650d8bebbf316340e513e040fac20e30aa Mon Sep 17 00:00:00 2001 From: Mark Finkle Date: Mon, 12 Mar 2012 15:53:45 -0400 Subject: [PATCH] Bug 734714 - Some prompts broken: 'aDomWin is null' in prompt service r=wesj --- mobile/android/components/PromptService.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;