commit | 66460c9cb6aeae877de60b0c58be05ba05452729 | [log] [tgz] |
---|---|---|
author | wu <wu.shaoyong@zte.com.cn> | Tue Oct 23 11:36:30 2018 +0800 |
committer | Carmelo Cascone <carmelo@opennetworking.org> | Tue Oct 30 02:22:03 2018 +0000 |
tree | df503d28bf401a4937f2c18d1ab890b7c4051b63 | |
parent | 64c2dfd3a12c618f6288c2aac8ccb51ac61f9a7a [diff] |
The tableAction should be checked if it is null. Change-Id: Id88a40f21754362dd28529264a0fdf3671c364d4
diff --git a/core/net/src/main/java/org/onosproject/net/pi/impl/PiGroupTranslatorImpl.java b/core/net/src/main/java/org/onosproject/net/pi/impl/PiGroupTranslatorImpl.java index d989571..4a4dff7 100644 --- a/core/net/src/main/java/org/onosproject/net/pi/impl/PiGroupTranslatorImpl.java +++ b/core/net/src/main/java/org/onosproject/net/pi/impl/PiGroupTranslatorImpl.java
@@ -109,6 +109,9 @@ final PiTableAction tableAction = translateTreatment(bucket.treatment(), interpreter, groupKey.tableId(), pipeconf.pipelineModel()); + if (tableAction == null) { + throw new PiTranslationException("The PI table action returned by the interpreter is null"); + } if (tableAction.type() != ACTION) { throw new PiTranslationException(format(