Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix for Export API campaignSubscriberActivity throw #19

merged 1 commit into from Dec 21, 2012


None yet
2 participants

cbrady321 commented Dec 19, 2012

If there is no subscriber activity for a campaign the campaignSubscriberActivityProcess method will receive an undefined data object, causing data.split to throw. This patch detects this case and returns an empty array to the caller.

@cbrady321 cbrady321 Fix for export api request for campaign subscriber activity and no ac…
…tivity returned. In this case 'data.split' will fail as data is undefined.

@gomfunkel gomfunkel added a commit that referenced this pull request Dec 21, 2012

@gomfunkel gomfunkel Merge pull request #19 from toastmeister/master
Return an empty array when API returns no subscriber activitiy

@gomfunkel gomfunkel merged commit d4507a2 into gomfunkel:master Dec 21, 2012


gomfunkel commented Dec 21, 2012

Thanks for the pull request!


cbrady321 commented Dec 21, 2012

Thanks for merging!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment