Bug 1312: TopologyRead Assert condition fix

This commit is contained in:
Tommaso Pecorella
2011-12-13 00:15:32 +01:00
parent a5ceb2cf29
commit 12eb268bf4

View File

@@ -133,7 +133,7 @@ TopologyReader::Link::GetToNodeName (void) const
std::string
TopologyReader::Link::GetAttribute (const std::string &name) const
{
NS_ASSERT_MSG (m_linkAttr.find (name) == m_linkAttr.end (), "Requested topology link attribute not found");
NS_ASSERT_MSG (m_linkAttr.find (name) != m_linkAttr.end (), "Requested topology link attribute not found");
return m_linkAttr.find (name)->second;
}