commit | 24e296b86971d8e075cba241bbb44fe6f76b472a | [log] [tgz] |
---|---|---|
author | Jonathan Hart <jono@onlab.us> | Tue Jan 12 14:47:07 2016 -0800 |
committer | Jonathan Hart <jono@onlab.us> | Tue Jan 12 14:47:07 2016 -0800 |
tree | d5f6c14bdd092b5f97aa66fd906a2769fdf25b5e | |
parent | 7a120021fec0a4cbcbdc2cde434aa111d6e8beb0 [diff] |
Prevent null treatments Change-Id: Icd40ab7f986f9738d0445428cd1f0c9053ed4e88
diff --git a/core/api/src/main/java/org/onosproject/net/flow/DefaultFlowRule.java b/core/api/src/main/java/org/onosproject/net/flow/DefaultFlowRule.java index 64ebcd9..c8f2e9c 100644 --- a/core/api/src/main/java/org/onosproject/net/flow/DefaultFlowRule.java +++ b/core/api/src/main/java/org/onosproject/net/flow/DefaultFlowRule.java
@@ -344,7 +344,7 @@ @Override public FlowRule.Builder withTreatment(TrafficTreatment treatment) { - this.treatment = treatment; + this.treatment = checkNotNull(treatment); return this; }