Kavitha Alagesan
Committed by Gerrit Code Review

Fix for ONOS-4877

Change-Id: Ibdb6dfea672c0900fd3d8dea0441c55c23940f81
......@@ -222,7 +222,9 @@ public class OpenFlowRuleProvider extends AbstractProvider
}
private void createCollector(OpenFlowSwitch sw) {
checkNotNull(sw, "Null switch");
if (sw == null) {
return;
}
if (adaptiveFlowSampling) {
// NewAdaptiveFlowStatsCollector Constructor
NewAdaptiveFlowStatsCollector fsc =
......