From d03cfbe9db84e4ebe86f703127438ca7ea3a9dc0 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 30 Aug 2015 23:06:30 -0700 Subject: [PATCH] GUAC-586: Return an empty array for getAvailableDataSources() if no auth data is present. --- .../src/main/webapp/app/auth/service/authenticationService.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/guacamole/src/main/webapp/app/auth/service/authenticationService.js b/guacamole/src/main/webapp/app/auth/service/authenticationService.js index 6493cc2a5..5dd549a34 100644 --- a/guacamole/src/main/webapp/app/auth/service/authenticationService.js +++ b/guacamole/src/main/webapp/app/auth/service/authenticationService.js @@ -321,7 +321,7 @@ angular.module('auth').factory('authenticationService', ['$injector', * * @returns {String[]} * The identifiers of all data sources availble to the current user, - * or null if no authentication data is present. + * or an empty array if no authentication data is present. */ service.getAvailableDataSources = function getAvailableDataSources() { @@ -331,7 +331,7 @@ angular.module('auth').factory('authenticationService', ['$injector', return authData.availableDataSources; // No auth data present - return null; + return []; };