Closed kagsteiner closed 1 year ago
Steps to reproduce:
Stack trace: 3 DailyGammon 0x0000000102f9cd3c -[Player readPlayerArray:] + 180 4 DailyGammon 0x0000000102f9af10 -[Player viewDidLoad] + 2116 5 UIKitCore 0x000000010b08e7ec -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 80
here's where it crashes (Player.m): -(void)readPlayerArray:(NSString*)searchLink {
NSURL *urlTopPage = [NSURL URLWithString:searchLink]; NSData *topPageHtmlData = [NSData dataWithContentsOfURL:urlTopPage]; **NSString *htmlString = [NSString stringWithUTF8String:[topPageHtmlData bytes]];**
Seems the searchLink must be quoted. It's searchLink __NSCFString * @"http://dailygammon.com/bg/plist?like=caveat emptor&type=name" 0x0000600000abf2f0 and probably should have a %20 or so where the " " between caveat emptor is?
With such a user name, NSURL *urlTopPage = [NSURL URLWithString:searchLink]; in Player.m already returns nil.
Trying to fix this... (trembles slightly)
yes, my mighty fix seems to work!
seems to work
Steps to reproduce:
Stack trace: 3 DailyGammon 0x0000000102f9cd3c -[Player readPlayerArray:] + 180 4 DailyGammon 0x0000000102f9af10 -[Player viewDidLoad] + 2116 5 UIKitCore 0x000000010b08e7ec -[UIViewController _sendViewDidLoadWithAppearanceProxyObjectTaggingEnabled] + 80
here's where it crashes (Player.m): -(void)readPlayerArray:(NSString*)searchLink {
Seems the searchLink must be quoted. It's searchLink __NSCFString * @"http://dailygammon.com/bg/plist?like=caveat emptor&type=name" 0x0000600000abf2f0 and probably should have a %20 or so where the " " between caveat emptor is?