Skip to content

Commit

Permalink
Add null check
Browse files Browse the repository at this point in the history
  • Loading branch information
amgciadev committed Aug 3, 2023
1 parent 6e2c8a4 commit 0de4c39
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,10 @@ public String getEmbargoFromItem(Context context, Item item)
.orElse(null);
}

if (bitstream == null) {
return null;
}

embargoDate = this.retrieveLongestEmbargo(context, bitstream);

return embargoDate != null ? embargoDate.toString() : null;
Expand Down

0 comments on commit 0de4c39

Please sign in to comment.