Fixed two non-problematic errors on non-windows that were caused by the hyperv and mssql modules returning empty lists

This commit is contained in:
Kenneth Skovhede
2016-11-08 13:33:12 +01:00
parent 14a3fe7c7a
commit e045e587af
@@ -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%",