Skip to content

Commit 1023daa

Browse files
committed
Merge branch 'master' into SAN-726-home-redirection
2 parents a4f863a + 135dfe2 commit 1023daa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

client/controllers/controllerApp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function ControllerApp(
8686
};
8787

8888
fetchUser(function(err, results) {
89-
if (!err) {
89+
if (!err && results) {
9090
thisUser = results;
9191
dataApp.data.user = results;
9292
fetchOrgs(function (err, results) {

client/services/serviceFetchInstances.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function fetchInstances(
1212
} else {
1313
currentAccountName = activeAccountName;
1414
fetchUser(function (err, user) {
15+
if (!user) { return cb(err); }
1516
currentInstances = user.fetchInstances({
1617
githubUsername: currentAccountName
1718
}, function (err) {

0 commit comments

Comments
 (0)