Skip to content

Commit

Permalink
Bugfix: Add null check in export method for dataset identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyKarnbach committed Dec 23, 2024
1 parent ea600c3 commit fe94e7c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ public void composeTableReusedDatasets(XWPFDocument document, XWPFTable xwpfTabl
docVar.add(datasetTableIDs.get(dataset.id));
docVar.add(Optional.ofNullable(dataset.getTitle()).orElse(""));

if (dataset.getDatasetIdentifier() != null) {
if (dataset.getDatasetIdentifier() != null && dataset.getDatasetIdentifier().getIdentifier() != null) {
docVar.add(dataset.getDatasetIdentifier().getIdentifier());
} else {
docVar.add("");
Expand Down

0 comments on commit fe94e7c

Please sign in to comment.