From c6935a04c46f9558dcc39e84f77c4e5fd7d962ae Mon Sep 17 00:00:00 2001 From: h44z Date: Sun, 23 Feb 2020 18:36:27 +0100 Subject: [PATCH] =?UTF-8?q?=E2=80=9Ejs/origrcv.js=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/origrcv.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/origrcv.js b/js/origrcv.js index 06f791e..4324c50 100644 --- a/js/origrcv.js +++ b/js/origrcv.js @@ -50,7 +50,7 @@ Zarafa.plugins.origrcv.OrigRcvPlugin = Ext.extend(Zarafa.core.Plugin, { var headers = record.get('transport_message_headers'); var toMatches = toRegex.exec(headers); - if (toMatches.length == 2 && toMatches[1] != "") { + if (toMatches != null && toMatches.length == 2 && toMatches[1] != "") { var addrListRegex = /\b[A-Z0-9._%+-]+@(?:[A-Z0-9-]+\.)+[A-Z]{2,6}\b/ig; // split email address list var emailAddresses = [];