try: -b o -u all -p all draft
authorKai Engert <kaie@kuix.de>
Fri, 20 Nov 2020 10:06:24 +0100
changeset 95751 42344811dc16fe7d7636a8285167733e397066d3
parent 95396 8db8a714a12809a9b41df35728aa659eb1620d0e
push id12265
push userkaie@kuix.de
push dateFri, 27 Nov 2020 15:01:35 +0000
treeherdertry-comm-central@42344811dc16 [default view] [failures only]
bugs1678489
try: -b o -u all -p all Bug 1678489 - Don't call split on undefined string in decryptQuote. r=aleca Differential Revision: https://phabricator.services.mozilla.com/D97734
mail/extensions/openpgp/content/ui/enigmailMsgComposeOverlay.js
--- a/mail/extensions/openpgp/content/ui/enigmailMsgComposeOverlay.js
+++ b/mail/extensions/openpgp/content/ui/enigmailMsgComposeOverlay.js
@@ -2832,17 +2832,17 @@ Enigmail.msg = {
     //}
 
     var exitCode = exitCodeObj.value;
 
     if (exitCode !== 0) {
       // Error processing
       var errorMsg = errorMsgObj.value;
 
-      var statusLines = errorMsg.split(/\r?\n/);
+      var statusLines = errorMsg ? errorMsg.split(/\r?\n/) : [];
 
       var displayMsg;
       if (statusLines && statusLines.length) {
         // Display only first ten lines of error message
         while (statusLines.length > 10) {
           statusLines.pop();
         }