assert on invalid uid

This commit is contained in:
Mathieu Lacage committed 2008-11-04 14:05:57 +01:00
1 parent b09d1008de
commit 87745fdacc
1 file changed
+1 -1
+1 -1
View File
@@ -132,7 +132,7 @@ IidManager::AllocateUid (std::string name)
struct IidManager::IidInformation *
IidManager::LookupInformation (uint16_t uid) const
{
NS_ASSERT (uid <= m_information.size ());
NS_ASSERT (uid <= m_information.size () && uid != 0);
return const_cast<struct IidInformation *> (&m_information[uid-1]);
}