Prevent NPE in delete namespace

Fixes #2039
This commit is contained in:
Joseph Schorr 2016-10-31 12:17:50 -04:00
parent 7c40eb8d87
commit a85126ea97

View file

@ -171,6 +171,10 @@ function(ApiService, CookieService, $rootScope, Config, $location) {
userService.deleteNamespace = function(info, callback) {
var namespace = info.user ? info.user.username : info.organization.name;
if (!namespace) {
return;
}
var deleteNamespaceItself = function() {
info.progress = 1;
info.progressMessage = 'Deleting namespace...';