-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Payments Download Crash #66
Comments
Hey 👋 You can download the fix and several other fixes and improvements from my Pull Request #65 I'm not sure if @nicolasgomollon views this repo any more, but hopefully he'll merge the PR soon. |
Thanks but I had run this in the debugger at the time and paymentData was definitely nil for the crash. So I would suggest keeping that check as well your new check for payment. |
Perhaps we had differing data being returned. I've added that line now too. |
The app consistently crashes while downloading payments for me every month. I found the fix, it is simple. Nicholas can you please apply this to the code? Shown in BOLD below.
In ReportDownloadOperation, fetchPaymentsForVendorID, line 431, please insert this check for nil paymentData. Else it crashes the NSJSONSerialization call.
NSData *paymentData = [NSURLConnection sendSynchronousRequest:[NSURLRequest requestWithURL:paymentURL]
returningResponse:nil error:nil];
if (paymentData == nil)
return;
NSDictionary *payment = [NSJSONSerialization JSONObjectWithData:paymentData options:0 error:nil];
The text was updated successfully, but these errors were encountered: