diff --git a/src/main/java/edu/harvard/iq/dataverse/FilePage.java b/src/main/java/edu/harvard/iq/dataverse/FilePage.java index f9f94c4fc31..69370d8f6f6 100644 --- a/src/main/java/edu/harvard/iq/dataverse/FilePage.java +++ b/src/main/java/edu/harvard/iq/dataverse/FilePage.java @@ -1217,7 +1217,7 @@ public String getLanguage() { } public String getDatasetPersistentId() { - return new GlobalId(dataset).asString(); + return dataset != null ? new GlobalId(dataset).asString() : null; } }