mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Check for nil object.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3300 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
aaaa8f77da
commit
ff444cb0a5
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,8 @@
|
|||
{
|
||||
unsigned i;
|
||||
|
||||
if (anObject == nil)
|
||||
return NSNotFound;
|
||||
/*
|
||||
* For large arrays, speed things up a little by caching the method.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue