Comment 2 for bug 512901

Revision history for this message
abb (openworld) wrote :

I'm sorry, but isn't this the reason?

from SUHost.m:

- (id)objectForInfoDictionaryKey:(NSString *)key
{
    return [bundle objectForInfoDictionaryKey:key];
}

- (BOOL)boolForInfoDictionaryKey:(NSString *)key
{
 return [[self objectForInfoDictionaryKey:key] boolValue];
}

You never check what type is returned. And exception occurs if this type is NSString. As I believe, a small fix like to check if returned value is NSString and if yes, to compare it explicitly with @"true" value could solve the issue.

Thanks.