Fix NPE
This commit is contained in:
parent
c04cb4e988
commit
61dcf86d2a
1 changed files with 2 additions and 0 deletions
|
@ -23,6 +23,8 @@ angular.module('quay').directive('notificationView', function () {
|
||||||
|
|
||||||
$scope.getAvatar = function(orgname) {
|
$scope.getAvatar = function(orgname) {
|
||||||
var organization = UserService.getOrganization(orgname);
|
var organization = UserService.getOrganization(orgname);
|
||||||
|
if (!organization) { return ''; }
|
||||||
|
|
||||||
return organization['avatar'] || '';
|
return organization['avatar'] || '';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue