Committed by
Gerrit Code Review
Fix for ONOS-4877
Change-Id: Ibdb6dfea672c0900fd3d8dea0441c55c23940f81
Showing
1 changed file
with
3 additions
and
1 deletions
... | @@ -222,7 +222,9 @@ public class OpenFlowRuleProvider extends AbstractProvider | ... | @@ -222,7 +222,9 @@ public class OpenFlowRuleProvider extends AbstractProvider |
222 | } | 222 | } |
223 | 223 | ||
224 | private void createCollector(OpenFlowSwitch sw) { | 224 | private void createCollector(OpenFlowSwitch sw) { |
225 | - checkNotNull(sw, "Null switch"); | 225 | + if (sw == null) { |
226 | + return; | ||
227 | + } | ||
226 | if (adaptiveFlowSampling) { | 228 | if (adaptiveFlowSampling) { |
227 | // NewAdaptiveFlowStatsCollector Constructor | 229 | // NewAdaptiveFlowStatsCollector Constructor |
228 | NewAdaptiveFlowStatsCollector fsc = | 230 | NewAdaptiveFlowStatsCollector fsc = | ... | ... |
-
Please register or login to post a comment