From 40d1942972a8dacb6e08bca9832c86d70cdc729a Mon Sep 17 00:00:00 2001 From: till Date: Mon, 11 Feb 2008 19:49:48 +0000 Subject: * fixing bug i reported in #1484545 git-svn-id: https://svn.roundcube.net/trunk@1040 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/js/app.js | 4 ++++ 1 file changed, 4 insertions(+) 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; -- cgit v1.2.3