Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CoreAnimation: ignoring exception: *** -[NSPlaceholderString initWithString:]: nil argument

This code is causing the error:

- (NSString *)cachedTwitterOAuthDataForUsername:(NSString *)username
{
    NSString *cache = [NSString stringWithString:[settings objectForKey:@"twitterCache"]];
    if (cache.length > 0)
    {
        twitterLoginShown = YES;
        return cache;       
    }
    return @" ";
}

I can't even step through each line in this block of code for some reason. I'm not exactly sure what the error is asking.

like image 637
ninjaneer Avatar asked May 26 '26 08:05

ninjaneer


1 Answers

The error tells that [settings objectForKey:@"twitterCache"] returns nil. Check if settings contains a value for the key @"twitterCache".

like image 64
EmptyStack Avatar answered May 27 '26 20:05

EmptyStack