Skip to content

Commit b1ef66b

Browse files
committed
handle null shoulder
1 parent 30d369d commit b1ef66b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/edu/harvard/iq/dataverse/pidproviders/AbstractPidProvider.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,9 @@ public GlobalId parsePersistentId(String protocol, String authority, String iden
347347

348348
if(isCaseInsensitive) {
349349
identifier = identifier.toUpperCase();
350-
comparableShoulder = comparableShoulder.toUpperCase();
350+
if(comparableShoulder != null) {
351+
comparableShoulder = comparableShoulder.toUpperCase();
352+
}
351353
}
352354
// Check authority/identifier if this is a provider that manages specific
353355
// identifiers

0 commit comments

Comments
 (0)