summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Frei <freisim93@gmail.com>2022-04-25 19:15:14 +0200
committerGitHub <noreply@github.com>2022-04-25 19:15:14 +0200
commit4031568cdf462df24977427935e029a4d337be36 (patch)
tree98f2015a37b08f9d1c3b9ee376b206b7fbf58850
parentfff9bf98eb8c5a3e9e58a7f81b2019bc22dd2132 (diff)
gui: Bandaid for null http errors (fixes #8261) (#8305)v1.20.0-rc.3v1.20.0
-rwxr-xr-xgui/default/syncthing/core/syncthingController.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/default/syncthing/core/syncthingController.js b/gui/default/syncthing/core/syncthingController.js
index 939ff5859..721a5a437 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);