From e045e587affd05ddd8abb5283f104b87f7b9a849 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Tue, 8 Nov 2016 13:33:12 +0100 Subject: [PATCH] Fixed two non-problematic errors on non-windows that were caused by the hyperv and mssql modules returning empty lists --- .../webroot/ngax/scripts/directives/sourceFolderPicker.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Duplicati/Server/webroot/ngax/scripts/directives/sourceFolderPicker.js b/Duplicati/Server/webroot/ngax/scripts/directives/sourceFolderPicker.js index c8e03de45..27b77a6bd 100644 --- a/Duplicati/Server/webroot/ngax/scripts/directives/sourceFolderPicker.js +++ b/Duplicati/Server/webroot/ngax/scripts/directives/sourceFolderPicker.js @@ -412,7 +412,7 @@ backupApp.directive('sourceFolderPicker', function() { }, AppUtils.connectionError); AppService.get('/hyperv', {path: '/'}).then(function(data) { - if (data.data.length > 0) { + if (data.data != null && data.data.length > 0) { var hypervnode = { text: gettextCatalog.getString('Hyper-V Machines'), id: "%HYPERV%", @@ -444,7 +444,7 @@ backupApp.directive('sourceFolderPicker', function() { }, AppUtils.connectionError); AppService.get('/mssql', { path: '/' }).then(function (data) { - if (data.data.length > 0) { + if (data.data != null && data.data.length > 0) { var mssqlnode = { text: gettextCatalog.getString('Microsoft SQL Databases'), id: "%MSSQL%",