Skip to content

Commit

Permalink
chore: correct null check message to corresponding field (#4251)
Browse files Browse the repository at this point in the history
* chore: correct null check message to corresponding field

* chore: correct formatting

---------

Co-authored-by: Dominic Reuter <dominic.reuter@sap.com>
  • Loading branch information
domreuter and dom-reuter authored Jun 7, 2024
1 parent 8932966 commit f374ea1
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f374ea1

Please sign in to comment.