appdata.items is NSMutableArray object.
source code
-(void)deleteAppDataItemId:(NSInteger)identifier{
NSLog(@"%@", [appdata.items objectAtIndex:identifier]);
NSLog(@"%i", identifier);
[appdata.items removeObjectAtIndex:identifier];
}
log
2009-11-08 21:53:01.683 xxx[14283:207] (
200,
"",
2009-11-08 21:52:53 +0900
)
2009-11-08 21:53:01.684 xxx[14283:207] 0
2009-11-08 21:53:01.685 xxx[14283:207] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)'
What caused this error?