Null check at the head of the constructor of IntentOperation

Change-Id: Iaa25c6c7e49cf1c629687b0ba95b548fad4f7d71
diff --git a/core/api/src/main/java/org/onosproject/net/intent/IntentOperation.java b/core/api/src/main/java/org/onosproject/net/intent/IntentOperation.java
index c9fefc2..c73199e 100644
--- a/core/api/src/main/java/org/onosproject/net/intent/IntentOperation.java
+++ b/core/api/src/main/java/org/onosproject/net/intent/IntentOperation.java
@@ -19,6 +19,7 @@
 import java.util.Objects;
 
 import static com.google.common.base.MoreObjects.toStringHelper;
+import static com.google.common.base.Preconditions.checkNotNull;
 
 /**
  * Abstraction of an intent-related operation, e.g. add, remove, replace.
@@ -62,8 +63,8 @@
      * @param intent   intent subject
      */
     IntentOperation(Type type, IntentId intentId, Intent intent) {
-        this.type = type;
-        this.intentId = intentId;
+        this.type = checkNotNull(type);
+        this.intentId = checkNotNull(intentId);
         this.intent = intent;
     }