Skip to content

Commit 330c561

Browse files
committed
Fix ResourceLimiterContainer
1 parent 30f5825 commit 330c561

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vslib/ResourceLimiterContainer.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ void ResourceLimiterContainer::insert(
1010
{
1111
SWSS_LOG_ENTER();
1212

13+
if (rl == nullptr)
14+
{
15+
SWSS_LOG_THROW("resouorce limitter pointer can't be nullptr");
16+
}
17+
1318
m_container[switchIndex] = rl;
1419
}
1520

0 commit comments

Comments
 (0)