ci-richard-mcelhinney / nhaystack

Niagara module for Project Haystack
https://www.project-haystack.org
Academic Free License v3.0
36 stars 23 forks source link

Retrieving number facets does not handle incorrectly config'd facet fields #18

Closed ci-richard-mcelhinney closed 1 year ago

ci-richard-mcelhinney commented 2 years ago

There is potential for standard facets on Control Points to be configured with a different type than expected. For example, the Niagara documentation states that the Min facet field should be a Number. However, the user can configure this to be something else.

This causes a Class Cast Exception when trying to retrieve the facet as the type is unexpected.

Need to add some better handling for this so it doesn't crash out.