I'm currently modifying a test class made by someone because its getting this error. The part at which the error shows up is at the If condition. I'm not sure why it gives that error at that part instead of the previous line. Thanks.
for(c2g__codaCashEntry__c cashRefund : ppIdToRefundMap.values())
{
List<c2g__codaTransactionLineItem__c> transLineList = accIdToReceiptTransLineListMap.get(cashRefund.c2g__Account__c);
if(!transLineList.isEmpty())
{
Id jobId = System.enqueueJob(new JVCO_PayonomyMatchRefundQueueable(cashRefund, transLineList));
}
}