commit | e63e51e424c4a3eb2dfc89ec04edff1dfdd73a39 | [log] [tgz] |
---|---|---|
author | Sho SHIMIZU <sshimizu@us.fujitsu.com> | Wed Dec 03 10:54:38 2014 -0800 |
committer | Gerrit Code Review <gerrit@onlab.us> | Wed Dec 03 21:39:55 2014 +0000 |
tree | 2feaeb81d3caf68bb50157c11cc0eef034ddd563 | |
parent | fd629e8584dff1bea65c75bc0dc89afdb4e5353b [diff] [blame] |
Prohibit null in instantiation Change-Id: If5229337d1531eae25cbd2b31ca8e6a117d022f3
diff --git a/core/api/src/main/java/org/onosproject/net/intent/IntentOperations.java b/core/api/src/main/java/org/onosproject/net/intent/IntentOperations.java index b668fcf..a9b3d44 100644 --- a/core/api/src/main/java/org/onosproject/net/intent/IntentOperations.java +++ b/core/api/src/main/java/org/onosproject/net/intent/IntentOperations.java
@@ -42,6 +42,9 @@ * @param operations list of intent operations */ private IntentOperations(List<IntentOperation> operations, ApplicationId appId) { + checkNotNull(operations); + checkNotNull(appId); + this.operations = operations; this.appId = appId; }