Fix NPE
This commit is contained in:
parent
a500477bbc
commit
d714c00ddb
1 changed files with 4 additions and 4 deletions
|
@ -148,12 +148,12 @@
|
||||||
|
|
||||||
// Watch for changes to the repository.
|
// Watch for changes to the repository.
|
||||||
$scope.$watch('repo', function() {
|
$scope.$watch('repo', function() {
|
||||||
if ($scope.tree) {
|
|
||||||
$timeout(function() {
|
$timeout(function() {
|
||||||
|
if ($scope.tree) {
|
||||||
$scope.tree.notifyResized();
|
$scope.tree.notifyResized();
|
||||||
});
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
// Watch for changes to the tag parameter.
|
// Watch for changes to the tag parameter.
|
||||||
$scope.$on('$routeUpdate', function(){
|
$scope.$on('$routeUpdate', function(){
|
||||||
|
|
Reference in a new issue