mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +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
a679deec6d
commit
f5bc639c2f
1 changed files with 2 additions and 0 deletions
|
@ -159,6 +159,8 @@
|
||||||
{
|
{
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
|
if (anObject == nil)
|
||||||
|
return NSNotFound;
|
||||||
/*
|
/*
|
||||||
* For large arrays, speed things up a little by caching the method.
|
* For large arrays, speed things up a little by caching the method.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue