Page 1 of 1

Debtor Save Null Reference

PostPosted: Thu Aug 13, 2026 3:37 pm
by SBarnes
I have a plugin that is desgined to fill in post codes on the main address of a debtor and on the delivery addresses and then save the debtor, this code runs over all the debtors and does this.

On certain debtors the save is producing a null reference exception, is there any way to determine what in the debtor save code could be causing this because even with the debugger launched visual studio is not jumping to the exception which it normally does if the problem is being caused by code in any plugin that is loaded.

Re: Debtor Save Null Reference

PostPosted: Thu Aug 13, 2026 3:58 pm
by Mike.Sheen
SBarnes wrote:is there any way to determine what in the debtor save code could be causing this


Not without running in source.

What would help narrow it down is run a SQL Profile trace to determine the last query(s) being issued before the exception - that will allow me to see reasonably narrow area of concern in the code.