Commit operation as per Section 5.2.7 of RFC 7047
[ovsdb.git] / library / src / main / java / org / opendaylight / ovsdb / lib / operations / Operation.java
index 1949d5db068611c7e53312d1f5406d7cc8de20db..00156aa9364d606a806cc10d9e3244c8d83c65ff 100644 (file)
@@ -9,9 +9,10 @@
  */
 package org.opendaylight.ovsdb.lib.operations;
 
+import org.opendaylight.ovsdb.lib.schema.TableSchema;
+
 import com.fasterxml.jackson.annotation.JsonIgnore;
 import com.fasterxml.jackson.annotation.JsonProperty;
-import org.opendaylight.ovsdb.lib.schema.TableSchema;
 
 public abstract class Operation<E extends TableSchema<E>> {
 
@@ -64,7 +65,7 @@ public abstract class Operation<E extends TableSchema<E>> {
 
     @JsonProperty
     public String getTable() {
-        return tableSchema.getName();
+        return (tableSchema == null) ? null : tableSchema.getName();
     }
 
     @Override