Skip to content
This repository has been archived by the owner on May 5, 2020. It is now read-only.

Paypal crash with error "-[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty NSArray'" #508

Closed
jorden0154 opened this issue Mar 16, 2017 · 3 comments
Labels

Comments

@jorden0154
Copy link

jorden0154 commented Mar 16, 2017

General information

  • SDK/Library version: <2.16.2>
  • Environment:
  • PayPal-Debug-ID values:
  • iOS Version and Device:
  • Integration type and version:

Issue description

<*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty NSArray'
*** First throw call stack:
(
0 CoreFoundation 0x0000000105a63d85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010506ddeb objc_exception_throw + 48
2 CoreFoundation 0x0000000105a0b885 -[__NSArray0 objectAtIndex:] + 101
3 LoadArmy 0x0000000100ae7205 +[PPAPIResponseDictionary filterResponse:type:] + 1365
4 LoadArmy 0x0000000100ae6844 -[PPAPIResponseDictionary initWithType:response:environemnt:] + 223
5 LoadArmy 0x0000000100ae6ac7 +[PPAPIResponseDictionary responseWithType:response:environment:] + 92
6 LoadArmy 0x0000000100ab60b9 __77-[PPServiceManager processCreditCardPayment:completion:withPreviousResponse:]_block_invoke.321 + 234
7 LoadArmy 0x0000000100ab5b4d __110-[PPServiceManager handleRequestResponseWithRetryBlock:withFailBlock:withCreateRequestBlock:withSuccessBlock:]_block_invoke.296 + 327
8 LoadArmy 0x0000000100aa8a11 -[PPServiceRequest urlConnection:didSucceedWithData:] + 278
9 LoadArmy 0x0000000100af28a5 __28-[PPSimpleURLConnection win]_block_invoke + 427
10 libdispatch.dylib 0x0000000105f02d9d _dispatch_call_block_and_release + 12
11 libdispatch.dylib 0x0000000105f233eb _dispatch_client_callout + 8
12 libdispatch.dylib 0x0000000105f0b1ef _dispatch_main_queue_callback_4CF + 1738
13 CoreFoundation 0x00000001059bd0f9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
14 CoreFoundation 0x000000010597eb99 __CFRunLoopRun + 2073
15 CoreFoundation 0x000000010597e0f8 CFRunLoopRunSpecific + 488
16 GraphicsServices 0x0000000106f1ead2 GSEventRunModal + 161
17 UIKit 0x000000010367df09 UIApplicationMain + 171
18 LoadArmy 0x0000000100a2395f main + 111
19 libdyld.dylib 0x0000000105f5892d start + 1
20 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException>

@bluk
Copy link
Contributor

bluk commented Mar 16, 2017

Can you please provide more details? A backtrace would be helpful. Thanks.

@jorden0154
Copy link
Author

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArray0 objectAtIndex:]: index 0 beyond bounds for empty NSArray'
*** First throw call stack:
(
0 CoreFoundation 0x0000000105a63d85 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010506ddeb objc_exception_throw + 48
2 CoreFoundation 0x0000000105a0b885 -[__NSArray0 objectAtIndex:] + 101
3 LoadArmy 0x0000000100ae7205 +[PPAPIResponseDictionary filterResponse:type:] + 1365
4 LoadArmy 0x0000000100ae6844 -[PPAPIResponseDictionary initWithType:response:environemnt:] + 223
5 LoadArmy 0x0000000100ae6ac7 +[PPAPIResponseDictionary responseWithType:response:environment:] + 92
6 LoadArmy 0x0000000100ab60b9 __77-[PPServiceManager processCreditCardPayment:completion:withPreviousResponse:]_block_invoke.321 + 234
7 LoadArmy 0x0000000100ab5b4d __110-[PPServiceManager handleRequestResponseWithRetryBlock:withFailBlock:withCreateRequestBlock:withSuccessBlock:]_block_invoke.296 + 327
8 LoadArmy 0x0000000100aa8a11 -[PPServiceRequest urlConnection:didSucceedWithData:] + 278
9 LoadArmy 0x0000000100af28a5 __28-[PPSimpleURLConnection win]_block_invoke + 427
10 libdispatch.dylib 0x0000000105f02d9d _dispatch_call_block_and_release + 12
11 libdispatch.dylib 0x0000000105f233eb _dispatch_client_callout + 8
12 libdispatch.dylib 0x0000000105f0b1ef _dispatch_main_queue_callback_4CF + 1738
13 CoreFoundation 0x00000001059bd0f9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
14 CoreFoundation 0x000000010597eb99 __CFRunLoopRun + 2073
15 CoreFoundation 0x000000010597e0f8 CFRunLoopRunSpecific + 488
16 GraphicsServices 0x0000000106f1ead2 GSEventRunModal + 161
17 UIKit 0x000000010367df09 UIApplicationMain + 171
18 LoadArmy 0x0000000100a2395f main + 111
19 libdyld.dylib 0x0000000105f5892d start + 1
20 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

@bluk
Copy link
Contributor

bluk commented Mar 17, 2017

Thank you for the backtrace details. Release 2.16.3 should fix the issue with parsing API responses.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants