From 6108988f2b482d702e9f4ad2d1510f903c76286c Mon Sep 17 00:00:00 2001
From: till <till@php.net>
Date: Mon, 11 Feb 2008 14:49:48 -0500
Subject: [PATCH] * fixing bug i reported in #1484545

---
 program/js/app.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/program/js/app.js b/program/js/app.js
index 6504bca..d661856 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -1824,6 +1824,10 @@
       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;
 

--
Gitblit v1.9.1