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 Frith-MacDonald 1998-11-23 11:07:44 +00:00
parent aaaa8f77da
commit ff444cb0a5

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.
*/