I'm writing an iPad App and today I realized, that there's something wrong when there's no internet connection.
I get this very informative error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'data parameter is nil'
I think, I limited it to this snippet:
@implementation WebviewPanelFactory
- (WebviewPanelViewController *)webviewPanelForSection:(NSDictionary *)section {
WebviewPanelViewController *webviewPanel = [[WebviewPanelViewController new] initWithNibName:@"WebviewPanel" bundle:nil];
webviewPanel.sectionTitle = section[@"Title"];
NSLog(@"HERE I AM. %@ %@", webviewPanel, section);
[self setupURLsForWebview:webviewPanel withSection:section];
NSLog(@"HERE I STILL AM");
[webviewPanel initWebviewPanel];
return webviewPanel;
}
- (void)setupURLsForWebview:(WebviewPanelViewController *)webviewPanel withSection:(NSDictionary *)section {
NSLog(@"HERE I AM. %@", section);
...
}
@end
The first NSLog get's printed and both variables do exist. But neither the second one, nor the third one (which should be called right after the first one) gets printed.
Any ideas, how to go on?
In XCode you can add the Exception-Breakpoint which will halt the application right before it crashes fataly. You should give this one a try, if it works as it should, it will pause right on the line of code, that crashes your app.
How to add the exception-breakpoint
Use spring 3 version
Spring configuration : springService.xml