unrvld / ODP.VisitorGroups

Visitor Groups for Optimizley Data Platform
MIT License
2 stars 4 forks source link

Fix exception where IEnumerable could be null #14

Closed stefanolsen closed 1 year ago

stefanolsen commented 1 year ago

This PR fixes a scenario where GetCustomerProperties could return an IEnumerable that were null, causing a NullReferenceException. The solution suggested is to never return a null-Enumerable, but instead an empty ICollection.

andrewmarkham commented 1 year ago

@stefanolsen Thanks for making the fix.

I will create a new release once the other PR's are resolved.