Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CFBundleName nil crash FXFormFieldHeader #439

Open
rbrdev opened this issue Feb 16, 2016 · 0 comments
Open

CFBundleName nil crash FXFormFieldHeader #439

rbrdev opened this issue Feb 16, 2016 · 0 comments

Comments

@rbrdev
Copy link

rbrdev commented Feb 16, 2016

is CFBundleName if nil, the method FXFormClassFromString crash App.

static Class FXFormClassFromString(NSString *className)
{
Class cls = NSClassFromString(className);
if (className && !cls)
{
//might be a Swift class; time for some hackery!
className = [@[[[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"],
className] componentsJoinedByString:@"."];
//try again
cls = NSClassFromString(className);
}
return cls;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant