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:
richard 1998-11-23 11:07:44 +00:00
parent a679deec6d
commit f5bc639c2f

View file

@ -159,6 +159,8 @@
{
unsigned i;
if (anObject == nil)
return NSNotFound;
/*
* For large arrays, speed things up a little by caching the method.
*/