Terminating app due to uncaught exception ' nsrangeexception ', Reason:-[__nsarraym objectatindex:]: index 0 beyond Bounds For empty array '

Source: Internet
Author: User
  • Home
  • >
  • iOS FAQs
  • >
  • Details
Terminating app due to uncaught exception ' nsrangeexception ', Reason: ' * * *-[__nsarraym Objectatindex:]: Index 0 Beyon D bounds for empty array '
First throw Call stack:
(0x1f9b012 0x1a90e7e 0x1f3d0b4 0x6baaf 0x1aa46b0 0x1c1bb 0x1aa46b0 0x14d0765 0x1f1ef3f 0x1f1e96f 0x1f41734 0x1f40f44 0x1f4 0E1B 0x27bd7e3 0x27bd668 0X9D4FFC 0x2a32 0x2965)
How to deal with this error? It is obvious that the array is out of bounds, meaning that when you use an array, such as you have 0-8 total 9 objects, you are going to fetch the 10th element array[9] ([array objectatindex:9]) that must be a mistake. See where the array subscript is wrong.

Terminating app due to uncaught exception ' nsrangeexception ', Reason:-[__nsarraym objectatindex:]: index 0 beyond Bounds For empty array '

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.