Nullpointer check for coop transactions.