Author: axeld Date: 2009-10-23 03:15:55 +0200 (Fri, 23 Oct 2009) New Revision: 33741 Changeset: http://dev.haiku-os.org/changeset/33741/haiku Modified: haiku/trunk/src/system/kernel/thread.cpp Log: * _get_next_thread_info() should be a bit more picky about its team needs. Modified: haiku/trunk/src/system/kernel/thread.cpp =================================================================== --- haiku/trunk/src/system/kernel/thread.cpp 2009-10-23 01:01:14 UTC (rev 33740) +++ haiku/trunk/src/system/kernel/thread.cpp 2009-10-23 01:15:55 UTC (rev 33741) @@ -2470,6 +2470,9 @@ else team = team_get_team_struct_locked(teamID); + if (team == NULL) + return B_BAD_VALUE; + struct thread* thread = NULL; if (lastID == 0) {