Skip to content

Commit

Permalink
Fix ResourceLimiterContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
kcudnik committed Aug 23, 2021
1 parent 30f5825 commit 330c561
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vslib/ResourceLimiterContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ void ResourceLimiterContainer::insert(
{
SWSS_LOG_ENTER();

if (rl == nullptr)
{
SWSS_LOG_THROW("resouorce limitter pointer can't be nullptr");
}

m_container[switchIndex] = rl;
}

Expand Down

0 comments on commit 330c561

Please sign in to comment.