Merge pull request #43 from coreos-inc/smallfixes

Fix NPE in notifications service
This commit is contained in:
Jimmy Zelinskie 2015-05-26 13:48:31 -04:00
commit 0a51891d95

View file

@ -196,6 +196,10 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
};
notificationService.getClasses = function(notifications) {
if (!notifications.length) {
return '';
}
var classes = [];
for (var i = 0; i < notifications.length; ++i) {
var notification = notifications[i];