Skip to content

Commit

Permalink
chore: Update TransferHistory UiAsset
Browse files Browse the repository at this point in the history
  • Loading branch information
SaadEGI committed Sep 21, 2023
1 parent 3f0e4bc commit 4189f19
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import jakarta.json.JsonObjectBuilder;
import lombok.RequiredArgsConstructor;
import lombok.SneakyThrows;
import org.apache.commons.lang3.StringUtils;
import org.eclipse.edc.jsonld.spi.JsonLd;
import org.jetbrains.annotations.Nullable;

Expand All @@ -34,7 +35,7 @@ public UiAsset buildUiAsset(JsonObject assetJsonLd) {
String title = JsonLdUtils.string(properties, Prop.Dcterms.TITLE);

uiAsset.setAssetId(id);
uiAsset.setName(title == null ? id : title);
uiAsset.setName(StringUtils.isBlank(title) ? id : title);
uiAsset.setLicenseUrl(JsonLdUtils.string(properties, Prop.Dcterms.LICENSE));
uiAsset.setDescription(JsonLdUtils.string(properties, Prop.Dcterms.DESCRIPTION));
uiAsset.setLanguage(JsonLdUtils.string(properties, Prop.Dcterms.LANGUAGE));
Expand Down

0 comments on commit 4189f19

Please sign in to comment.