I am trying to use optional date filters (one of these dates is Effective Date and the others are custom fields) for a query which is pulling information of all contract documents from my master agreements and agreements.
I am getting an error : While Trying to Invoke the method java.lang.String.length() of an object loaded from local variable 'str'
The error goes away as soon as I make the date filters mandatory or fill in suitable date values in the filters and the query fetches absolutely correct results.
I do not want to make the date fields mandatory. Also I don't want dynamic filters here.
Any thoughts on this would be appreciated.