Closed

Description
The typeahead directive breaks if the [typeahead] property receives a NULL value (with NullPointerException). This happens since my async data service returns NULL instead of [] if no search results were found.
I'm wondering why NULL is not a valid value? In my opinion, the directive should catch undefined values by itself.
ERROR TypeError: Cannot read property 'slice' of null
at TypeaheadDirective.push../node_modules/ngx-bootstrap/typeahead/typeahead.directive.js.TypeaheadDirective.prepareMatches (typeahead.directive.js:306)
...
ngx-bootstrap: 3.0.0
Angular: 6.0.1