From b366d8981cdb409bea4a3e6feedc3f9d2d9a710d Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 8 Jan 2017 20:56:48 +0100 Subject: [PATCH] client/api: fix null reference error --- client/js/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/api.js b/client/js/api.js index 6f231245..21e25702 100644 --- a/client/js/api.js +++ b/client/js/api.js @@ -178,7 +178,7 @@ class Api extends events.EventTarget { return requestPromise; }) .catch(error => { - if (error.response.name === + if (error.response && error.response.name === 'MissingOrExpiredRequiredFileError') { for (let key of Object.keys(files)) { files[key].token = null;