fix sendPurchaseFinishEvent null error