summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authortill <till@php.net>2008-02-11 19:49:48 +0000
committertill <till@php.net>2008-02-11 19:49:48 +0000
commit6108988f2b482d702e9f4ad2d1510f903c76286c (patch)
treea3a3085a449d6a941fe5a26da7d88736c50d944e /program/js/app.js
parentc3c0fb714905776916bc224b79bdc37197049afc (diff)
* fixing bug i reported in #1484545
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 6504bca83..d6618564b 100644
--- a/program/js/app.js
+++ b/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;