Prevent null treatments
Change-Id: Icd40ab7f986f9738d0445428cd1f0c9053ed4e88
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or login to post a comment