"Object reference not set to an instance of an object” (NullReference Exception) was intermittently reported when executing a customized receiving pipeline when de-batch an incoming message

Problem: ======== “Object reference not set to an instance of an object” was intermittently reported when executing a customized receiving pipeline when de-batch an incoming message. Analysis: ======== 1.       The error was caused by the following first chance Access Violation.   (2fac.347c): Access violation – code c0000005 (first/second chance not available) eax=1e0a7a40 ebx=1e09d858 ecx=00000000 edx=00078272…