Added explicit check for item == nil.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21540 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Gregory John Casamento 2005-07-26 02:24:54 +00:00
parent ff1506b59c
commit e8fe1e33a9

View file

@ -521,6 +521,9 @@ static NSImage *unexpandable = nil;
*/
- (int)rowForItem: (id)item
{
if(item == nil)
return -1;
int row = [_items indexOfObject: item];
return (row == NSNotFound) ? -1 : row;
}