Skip to content

Commit

Permalink
Merge pull request IQSS#10443 from IQSS/10442-index-draft-from-template
Browse files Browse the repository at this point in the history
IQSS#10442 fix null from template
  • Loading branch information
pdurbin authored Apr 1, 2024
2 parents 2f6d3aa + 08c5b90 commit a2f4518
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ public SolrInputDocuments toSolrDocs(IndexableDataset indexableDataset, Set<Long
*/
if (dsf.getControlledVocabularyValues().isEmpty()) {
for (DatasetFieldValue dfv : dsf.getDatasetFieldValues()) {
if (dfv.getValue().equals(DatasetField.NA_VALUE)) {
if (dfv.getValue() == null || dfv.getValue().equals(DatasetField.NA_VALUE)) {
continue;
}
solrInputDocument.addField(solrFieldSearchable, dfv.getValue());
Expand Down

0 comments on commit a2f4518

Please sign in to comment.