commit | de4d1c0b45badac0613d7a0015acb660c1220f89 | [log] [tgz] |
---|---|---|
author | Charles Chan <rascov@gmail.com> | Thu May 10 11:32:56 2018 -0700 |
committer | Ray Milkey <ray@opennetworking.org> | Thu May 10 18:53:33 2018 +0000 |
tree | a05fb9f5cfcce52b1b4534186486cd81e3e76acc | |
parent | c44b9772bf8197e705a15b95fded679ffaf7503b [diff] |
Fixing NPE in processVlanIdFilter Change-Id: I22fcf94208ede4d1a2c47f15fd7402fdae06afdf
diff --git a/drivers/default/src/main/java/org/onosproject/driver/pipeline/ofdpa/CpqdOfdpa2Pipeline.java b/drivers/default/src/main/java/org/onosproject/driver/pipeline/ofdpa/CpqdOfdpa2Pipeline.java index 9876a0c..2e71427 100644 --- a/drivers/default/src/main/java/org/onosproject/driver/pipeline/ofdpa/CpqdOfdpa2Pipeline.java +++ b/drivers/default/src/main/java/org/onosproject/driver/pipeline/ofdpa/CpqdOfdpa2Pipeline.java
@@ -184,7 +184,7 @@ // ofdpa cannot match on ALL portnumber, so we need to use separate // rules for each port. List<PortNumber> portnums = new ArrayList<>(); - if (portCriterion.port() == PortNumber.ALL) { + if (portCriterion != null && portCriterion.port() == PortNumber.ALL) { for (Port port : deviceService.getPorts(deviceId)) { if (port.number().toLong() > 0 && port.number().toLong() < OFPP_MAX) { portnums.add(port.number());