object / MongOData

MongoDB OData provider
42 stars 5 forks source link

Fix NullReferenceException when the Expression is not Conditional #21

Closed martijns closed 9 years ago

martijns commented 9 years ago

Fix NullReferenceException when the Expression is not Conditional (but, for example, a PropertyExpression)

This solves an issue when multiple "and/or" filters are combined with a function such as substring. Example url: /MyService.svc/MyEntity()/$count?$filter=Date gt datetime'2015-02-20T14:14:28.4257345Z' and substringof('code3',Code)

This query resulted in an error before the change. After the change it behaves as expected.