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

Fix a potential issue (#365). If the UIImage passed as param is nil, this inline function will return a non-nil instance of UIImage #750

Closed

Conversation

bpoplauschi
Copy link
Member

See #365 for details

…m is nil, this inline function will return a non-nil instance of UIImage
@bpoplauschi bpoplauschi added this to the 3.7.0 milestone Jun 10, 2014
@dchohfi
Copy link
Contributor

dchohfi commented Jun 13, 2014

How about doing that at the beginning of the function? Like

inline UIImage *SDScaledImageForKey(NSString *key, UIImage *image) {
if (!image) return;
...

@dchohfi
Copy link
Contributor

dchohfi commented Jun 14, 2014

@bpoplauschi

@bpoplauschi
Copy link
Member Author

Replaced by e410494

@bpoplauschi bpoplauschi deleted the SDScaledImageForKey branch June 18, 2014 12:27
devedup pushed a commit to FilmFlexMovies/SDWebImage that referenced this pull request Sep 10, 2014
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

Successfully merging this pull request may close these issues.

3 participants