From 70cdc7d7590d27e978360bc56dfe654d8df3adf7 Mon Sep 17 00:00:00 2001 From: Ping Chen Date: Wed, 30 Nov 2022 21:11:13 +1100 Subject: [PATCH] Bug 1802685 - Prevent error when searching on server in nntp-js. r=mkmelin Differential Revision: https://phabricator.services.mozilla.com/D163393 --HG-- extra : amend_source : 232181df7eed26e30fab696c837eaaae52002e0b --- mailnews/news/src/NntpClient.jsm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mailnews/news/src/NntpClient.jsm b/mailnews/news/src/NntpClient.jsm index c81acd8ee2..6858d4d2d4 100644 --- a/mailnews/news/src/NntpClient.jsm +++ b/mailnews/news/src/NntpClient.jsm @@ -831,7 +831,7 @@ class NntpClient { * @param {NntpResponse} res - XPAT response received from the server. */ _actionXPatResponse({ status, statusText, data }) { - if (status != XPAT_OK) { + if (status && status != XPAT_OK) { this._actionError(NNTP_ERROR_MESSAGE, statusText); return; }