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

Crash at Launch #11

Open
DaveBatton opened this issue Mar 8, 2017 · 0 comments
Open

Crash at Launch #11

DaveBatton opened this issue Mar 8, 2017 · 0 comments

Comments

@DaveBatton
Copy link

I have some code that may attempt to display SSSnackbar at launch from -applicationDidFinishLaunching:. I'm OK with it not being able to display a message here, but instead it crashes. The problem is that in -show it assumes there's a rootViewController:

    UIViewController *topController = [UIApplication sharedApplication].keyWindow.rootViewController;

If this is nil, bad things happen. I think it just needs a check for nil here. It could return without displaying anything.

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