Skip to content

Commit

Permalink
Return ontologyId if preferredPrefix is null.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrietteharmse committed Jan 23, 2024
1 parent 097ea6a commit 062e685
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ public void setNamespace(String namespace) {
}

public String getPreferredPrefix() {
return preferredPrefix;
if (preferredPrefix != null)
return preferredPrefix;
else
return getId();
}

public void setPreferredPrefix(String preferredPrefix) {
Expand Down

0 comments on commit 062e685

Please sign in to comment.