Kavitha Alagesan

Fix for ONOS-4877

Change-Id: Ibdb6dfea672c0900fd3d8dea0441c55c23940f81
(cherry picked from commit 6683c2fc)
...@@ -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 =
......