summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 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);