BPM runtime caught an unexpected exception of 'NullReferenceException' type

The explanation for this error and the solution is posted here: BPM ARInvoice Error - Update Tax Category - #7 by hkeric.wci