Make firstObject behave like the documentation says ;) #90

Merged
merged 1 commit into from Sep 26, 2011

Conversation

Projects
None yet
2 participants
Contributor

myell0w commented Sep 25, 2011

Just a small fix to make firstObject work on an empty NSArray without crashing.

Owner

soffes commented Sep 26, 2011

Good catch!

soffes added a commit that referenced this pull request Sep 26, 2011

Added test for `-[NSArray firstObject]` category #90
This should return nil if the array is empty.

soffes added a commit that referenced this pull request Sep 26, 2011

Merge pull request #90 from myell0w/patch-1
Make firstObject behave like the documentation says ;)

@soffes soffes merged commit 548ad23 into soffes:master Sep 26, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment