Skip to content
Snippets Groups Projects
Commit 37ce4344 authored by Zhibin Mai's avatar Zhibin Mai
Browse files

Add checking on the attributes list

parent 77480d77
No related branches found
No related tags found
4 merge requests!545Draft: add env variables,!543Draft: az/sa-support-index-extended-properties,!540Draft: support index extended properties,!465Index extended properties defined in property configurations
Pipeline #178868 failed
......@@ -171,7 +171,7 @@ public class IndexerQueueTaskBuilderAzure extends IndexerQueueTaskBuilder {
jo.addProperty(DpsHeaders.DATA_PARTITION_ID, headers.getPartitionIdWithFallbackToAccountId());
jo.addProperty(DpsHeaders.CORRELATION_ID, headers.getCorrelationId());
// Append the ancestry kinds used to prevent circular chasing
if(attributes.containsKey(Constants.ANCESTRY_KINDS)) {
if(attributes != null && attributes.containsKey(Constants.ANCESTRY_KINDS)) {
jo.addProperty(Constants.ANCESTRY_KINDS, attributes.get(Constants.ANCESTRY_KINDS));
}
JsonObject jomsg = new JsonObject();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment