check if pid is null (to avoid NullPointerException)

This commit is contained in:
Miriam Baglioni 2021-06-21 10:41:47 +02:00
parent 6b8c357381
commit 59c36eb185
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,8 @@ public class AuthorMerger {
}
public static String pidToComparableString(StructuredProperty pid) {
if (pid == null)
return "";
return (pid.getQualifier() != null
? pid.getQualifier().getClassid() != null ? pid.getQualifier().getClassid().toLowerCase() : ""
: "")