Line 275: elseif offer.type == GameStore.OfferTypes.OFFER_TYPE_PREYBONUS then GameStore.processPreyBonusReroll(nil, offer.count)
The problem is above, you are passing the first argument as nil and your function expects player userdata, that's why you got that error, it should be this way...