Fix small NPE

Fixes #1811
This commit is contained in:
Joseph Schorr 2016-09-08 14:32:49 -04:00
parent 42d4f4d851
commit a7ff08458d

View file

@ -676,13 +676,17 @@ angular.module("core-ui", [])
$scope.toggleItems = function($event) {
$event.stopPropagation();
$scope.controller.toggleItems();
if ($scope.controller) {
$scope.controller.toggleItems();
}
};
this.checkByFilter = function(filter) {
$scope.controller.checkByFilter(function(item) {
return filter({'item': item});
});
if ($scope.controller) {
$scope.controller.checkByFilter(function(item) {
return filter({'item': item});
});
}
};
}
};