View Single Post
  #1 (permalink)  
Old August 28th, 2012, 02:43 PM
bubba hawk bubba hawk is offline
Registered User
Points: 31, Level: 1
Points: 31, Level: 1 Points: 31, Level: 1 Points: 31, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2011
Posts: 7
Thanks: 2
Thanked 0 Times in 0 Posts
Default Chapter 2 page 52 index beyond bounds error

Hello: When Running Catalog project on page 52, I get an index beyond bounds error. I added a bunch of logs and it appears to complete the getAllProducts method. Then it completes the viewDidLoad. Then it completes numberOfRowsInSection (with count = 21). Then it throws an error seen below - I'm have not been able to find source of this error. Any help is greatly appreciated. Thanks, Hawk

Quote:
2012-08-28 14:30:18.616 Catalog[521:f803] Getting Products8
2012-08-28 14:30:18.617 Catalog[521:f803] Getting Products9
2012-08-28 14:30:18.618 Catalog[521:f803] Master View2
2012-08-28 14:30:18.618 Catalog[521:f803] Master View3
2012-08-28 14:30:18.619 Catalog[521:f803] Master View4
2012-08-28 14:30:18.621 Catalog[521:f803] Rows In Section1
2012-08-28 14:30:18.622 Catalog[521:f803] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]'
*** First throw call stack:
(0x1588052 0x1719d0a 0x1574674 0x4f6805 0x30627a 0x2b1548...