Github user ahgittin commented on a diff in the pull request:

    https://github.com/apache/brooklyn-ui/pull/94#discussion_r229358124
  
    --- Diff: 
ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.directive.js
 ---
    @@ -127,15 +135,15 @@ function controller($scope, $element, $q, $uibModal, 
$log, $templateCache, palet
         $scope.getPlaceHolder = function () {
             return 'Search';
         };
    -
    +    
         $scope.isLoading = true;
     
         $scope.$watch('search', () => {
             $scope.freeFormTile = {
                 symbolicName: $scope.search,
                 name: $scope.search,
                 displayName: $scope.search,
    -            supertypes: [$scope.family.superType]
    +            supertypes: ($scope.family ? [ $scope.family.superType ] : []),
    --- End diff --
    
    pretty sure i added it because of an NPE here.  not sure how/why but this 
check won't hurt.


---

Reply via email to