summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js/app.js
diff options
context:
space:
mode:
authortill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-11 19:49:48 +0000
committertill <till@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-02-11 19:49:48 +0000
commit40d1942972a8dacb6e08bca9832c86d70cdc729a (patch)
treeacb621bac3a012352bdcda5542a0b440a32f11cc /roundcubemail/program/js/app.js
parentd0673285e1c4cb8100a4d7ef79ef52ef197b00b8 (diff)
* fixing bug i reported in #1484545
git-svn-id: https://svn.roundcube.net/trunk@1040 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js/app.js')
-rw-r--r--roundcubemail/program/js/app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index 6504bca83..d6618564b 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -1824,6 +1824,10 @@ function rcube_webmail()
var eid = tinyMCE.getEditorId('_message');
// editor is a TinyMCE_Control object
var editor = tinyMCE.getInstanceById(eid);
+ // if this is null, we should exit
+ if (editor == null) {
+ return false;
+ }
var msgDoc = editor.getDoc();
var msgBody = msgDoc.body;