Jonathan Hart

Prevent null treatments

Change-Id: Icd40ab7f986f9738d0445428cd1f0c9053ed4e88
...@@ -344,7 +344,7 @@ public class DefaultFlowRule implements FlowRule { ...@@ -344,7 +344,7 @@ public class DefaultFlowRule implements FlowRule {
344 344
345 @Override 345 @Override
346 public FlowRule.Builder withTreatment(TrafficTreatment treatment) { 346 public FlowRule.Builder withTreatment(TrafficTreatment treatment) {
347 - this.treatment = treatment; 347 + this.treatment = checkNotNull(treatment);
348 return this; 348 return this;
349 } 349 }
350 350
......