Skip to content

Instantly share code, notes, and snippets.

@colinhumber
colinhumber / gist:3062522
Created July 6, 2012 20:10
WebKit error when filling in for on iOS
// thrown on every key press
2012-07-06 14:09:54.264 xxx[15272:1cd03] *** WebKit discarded an uncaught exception in the textDidChangeInTextField:inFrame: delegate: <NSInvalidArgumentException> *** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]
// app crashes when submitting form
2012-07-06 14:09:59.343 xxx[15272:1cd03] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[0]'
*** First throw call stack:
(0x1610d72 0x1221e51 0x15c60a4 0x15d83b2 0x15d7f5c 0x480389 0x4809c6 0x480354 0x575cee 0x379945 0x1604f5d 0x1604e81 0x1604fea 0x33db6d1 0x1600b12 0x160076e 0x1604f5d 0x1604e81 0x422e4f3 0x422e068 0x15950ef 0x1594b1f 0x15b76c4 0x15b6ed4 0x15b6dab 0x220d923 0x220d7a8 0x1cde71 0x291d 0x2845)
libc++abi.dylib: terminate called throwing an exception
sudo /usr/bin/xcode-select -switch /Applications/Xcode.app
- (GMGridViewCell *)GMGridView:(GMGridView *)gridView cellForItemAtIndex:(NSInteger)index {
CGSize size = [self sizeForItemsInGMGridView:gridView];
GMGridViewCell *cell = [gridView dequeueReusableCell];
if (!cell) {
cell = [[GMGridViewCell alloc] initWithFrame:CGRectMake(0, 0, size.width, size.height)];
}
Piece *piece = [self.project.pieces objectAtIndex:index];