commit | d709dba068797b958f589cac7c5dd471c32ccc7a | [log] [tgz] |
---|---|---|
author | 柯志勇10068695 <ke.zhiyong@zte.com.cn> | Tue Oct 23 18:35:49 2018 +0800 |
committer | Andrea Campanella <andrea@opennetworking.org> | Tue Oct 23 13:02:05 2018 +0000 |
tree | d78ddb0ea47b34937c05226129f0b1e2fb7b30c9 | |
parent | d34aaf27eee381a2943afbb55f58dd1c1de92d8c [diff] |
Request may be null, if not checked, it may be error. Change-Id: I78408b894815461403e757f1042d08361216cff2
diff --git a/core/net/src/main/java/org/onosproject/net/meter/impl/MeterManager.java b/core/net/src/main/java/org/onosproject/net/meter/impl/MeterManager.java index 04e3e56..f39b328 100644 --- a/core/net/src/main/java/org/onosproject/net/meter/impl/MeterManager.java +++ b/core/net/src/main/java/org/onosproject/net/meter/impl/MeterManager.java
@@ -188,7 +188,7 @@ @Override public Meter submit(MeterRequest request) { - + checkNotNull(request, "request cannot be null."); MeterId id = allocateMeterId(request.deviceId()); Meter.Builder mBuilder = DefaultMeter.builder() @@ -210,6 +210,7 @@ @Override public void withdraw(MeterRequest request, MeterId meterId) { + checkNotNull(request, "request cannot be null."); Meter.Builder mBuilder = DefaultMeter.builder() .forDevice(request.deviceId()) .fromApp(request.appId())