Skip to content

Commit

Permalink
add null check for datasetRelPublications IQSS#2680
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Oct 26, 2015
1 parent 2e79a0d commit 0165b0c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ public void setDatasetRelPublications(List<DatasetRelPublication> datasetRelPubl


public String getRelPublicationCitation() {
if (!this.datasetRelPublications.isEmpty()) {
if (this.datasetRelPublications != null && !this.datasetRelPublications.isEmpty()) {
return this.getDatasetRelPublications().get(0).getText();
} else {
return "";
Expand Down

0 comments on commit 0165b0c

Please sign in to comment.