Hi,
Put a break point at source code and check how the error is generated, as per the dump it is indicating error from standard method but some where it has been called in custom code.
You can traverse back to actual code where the standard method is being called from call stack( standard display tab) while debugging and identify the issue.
Best Regards,
Dharmakasi.