diff options
Diffstat (limited to 'aai-resources/src')
-rw-r--r-- | aai-resources/src/main/java/org/openecomp/aai/rest/BulkConsumer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/aai-resources/src/main/java/org/openecomp/aai/rest/BulkConsumer.java b/aai-resources/src/main/java/org/openecomp/aai/rest/BulkConsumer.java index 951c9ff..7ec6bbf 100644 --- a/aai-resources/src/main/java/org/openecomp/aai/rest/BulkConsumer.java +++ b/aai-resources/src/main/java/org/openecomp/aai/rest/BulkConsumer.java @@ -301,7 +301,7 @@ public abstract class BulkConsumer extends RESTAPI { actionElement = item.get("delete"); } - if (!actionElement.isJsonArray()) { + if ((actionElement == null) || !actionElement.isJsonArray()) { throw new AAIException("AAI_6111", "input payload does not follow bulk add interface"); } JsonArray httpArray = actionElement.getAsJsonArray(); |