From 32669dc099b6e6d75d55c677b54c6934292cd0bf Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 23 Dec 2020 12:00:17 +0100 Subject: [PATCH] Fix type error --- www/common/outer/roster.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/common/outer/roster.js b/www/common/outer/roster.js index 7dbf544c2..72f343477 100644 --- a/www/common/outer/roster.js +++ b/www/common/outer/roster.js @@ -587,8 +587,8 @@ var factory = function (Util, Hash, CPNetflux, Sortify, nThen, Crypto, Feedback) // deleted while you are open // emit an event var onChannelError = function (info) { - Feedback.send('ROSTER_CHANNEL_ERROR='+info.type); - if (info.type === "EUNKNOWN") { + if (Feedback) { Feedback.send('ROSTER_CHANNEL_ERROR='+(info && info.type)); } + if (info && info.type === "EUNKNOWN") { // chainpad-netflux should recover by itself return; }