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 in HSVFromUIColor: when color is nil #5

Open
neoneye opened this issue May 16, 2014 · 0 comments
Open

Crash in HSVFromUIColor: when color is nil #5

neoneye opened this issue May 16, 2014 · 0 comments

Comments

@neoneye
Copy link

neoneye commented May 16, 2014

I'm trying to integrate the iPad example into my own code. My view controller has a nil background color. When invoking -changeColor, it sets the sourceColor, which triggers a crash in HSVFromUIColor.

It seems to be that HSVFromUIColor cannot handle a nil color. Perhaps add a check for if color is nil.

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