When trying to open a cash receipt: Object reference not set to an instance of an object

Any ideas on why this is coming up? Details here:

Application Error

Exception caught in: Ice.Lib.EpiClientLib

Error Detail

Message: Object reference not set to an instance of an object.
Program: Ice.Lib.EpiClientLib.dll
Method: RebuildWhereClauses

Client Stack Trace

at Ice.Lib.Searches.SearchWorker.RebuildWhereClauses(ArrayList al, SearchOptions opts)
at Ice.Lib.Searches.EpiSearchBase.processBAQorAdvSearchResults(Object o)
at Ice.Lib.Searches.EpiSearchBase.processQuickSearch(String quickSearchId)
at Ice.Lib.Searches.EpiSearchBase.launchDefaultQuickSearch(Object sender, String like)
at Ice.Lib.Searches.EpiSearchBase.EpiSearchBase_Load(Object sender, EventArgs e)
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at Ice.Lib.Framework.EpiForm.WndProc(Message& message)

Wild guess is that there was a BAQ Search or Quick search set to be the default for a particular search, but the BAQ is missing.

Issue was related to InvcHead.PayDueDate & InvcHead.DueDate not matching. Had to update manually and it worked.