Debtor Save Null Reference

Discussions relating to Jiwa 7 plugin development, and the Jiwa 7 API.

Debtor Save Null Reference

Postby SBarnes » Thu Aug 13, 2026 3:37 pm

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.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1712
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 192

Re: Debtor Save Null Reference

Postby Mike.Sheen » Thu Aug 13, 2026 3:58 pm

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.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2625
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 824


Return to Technical and or Programming

Who is online

Users browsing this forum: Baidu [Spider] and 73 guests