diff --git a/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java b/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java index adfb13b745a..20502e41b07 100644 --- a/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java +++ b/spi/common/edr-store-spi/src/main/java/org/eclipse/edc/edr/spi/types/EndpointDataReferenceEntry.java @@ -113,12 +113,13 @@ public Builder self() { return this; } + @Override public EndpointDataReferenceEntry build() { super.build(); requireNonNull(entity.assetId, ASSET_ID); requireNonNull(entity.agreementId, AGREEMENT_ID); requireNonNull(entity.transferProcessId, TRANSFER_PROCESS_ID); - requireNonNull(entity.providerId, TRANSFER_PROCESS_ID); + requireNonNull(entity.providerId, PROVIDER_ID); // The id is always equals to transfer process id entity.id = entity.transferProcessId; return entity;