Using BrowseFilter in browseAsync (v8 API)

I’m attempting to find the tagpaths inside the gateway’s default tagprovider.
Using:

CompletableFuture<Results<NodeDescription>> node=context.getTagManager().getTagProvider("default").browseAsync(TagPath,BrowseFilter);

In browseAsync, how is BrowseFilter configured? Currently, node returns a NullPointerException.

If you don’t need any filtering on results, just use the static com.inductiveautomation.ignition.common.browsing.BrowseFilter.NONE instance. If you do need to add filtering, then construct a new BrowseFilter(), then add various name, property, etc filters to it.