Catching Transaction item null Exception

Hello All,

How can we catch a null exception and close the applications once there are no more items to be processed in the queue? try-catch didn’t seem to work for me … Appreciate your help …

Thanks and Regards

Have an initial checking of your transactionitem variable in an If Condition:

IF (TransactionItem is nothing)
//Your process here