Add null check in the constructor

Change-Id: I5436324666a77c6c830a44b107eca65b4dea88bb
diff --git a/core/api/src/main/java/org/onosproject/net/flow/BatchOperationEntry.java b/core/api/src/main/java/org/onosproject/net/flow/BatchOperationEntry.java
index 37a1716..b5ad2ef 100644
--- a/core/api/src/main/java/org/onosproject/net/flow/BatchOperationEntry.java
+++ b/core/api/src/main/java/org/onosproject/net/flow/BatchOperationEntry.java
@@ -19,6 +19,8 @@
 
 import com.google.common.base.MoreObjects;
 
+import static com.google.common.base.Preconditions.checkNotNull;
+
 /**
  * A super class for batch operation entry classes.
  * <p>
@@ -26,11 +28,10 @@
  * its entries.
  */
 public class BatchOperationEntry<T extends Enum<?>, U extends BatchOperationTarget> {
+
     private final T operator;
     private final U target;
 
-
-
     /**
      * Constructs new instance for the entry of the BatchOperation.
      *
@@ -38,8 +39,8 @@
      * @param target the target object of this operation
      */
     public BatchOperationEntry(T operator, U target) {
-        this.operator = operator;
-        this.target = target;
+        this.operator = checkNotNull(operator);
+        this.target = checkNotNull(target);
     }
 
     /**