From 4031568cdf462df24977427935e029a4d337be36 Mon Sep 17 00:00:00 2001 From: Simon Frei Date: Mon, 25 Apr 2022 19:15:14 +0200 Subject: gui: Bandaid for null http errors (fixes #8261) (#8305) --- gui/default/syncthing/core/syncthingController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js index 939ff58596..721a5a437a 100755 --- a/gui/default/syncthing/core/syncthingController.js +++ b/gui/default/syncthing/core/syncthingController.js @@ -178,7 +178,8 @@ angular.module('syncthing.core') console.log('HTTPError', arg); online = false; - if (!restarting) { + // We sometimes get arg == null from angularjs - no idea why + if (!restarting && arg) { if (arg.status === 0) { // A network error, not an HTTP error $scope.$emit(Events.OFFLINE); -- cgit v1.2.3