added fix for vocabulary field without terms

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-catalogue/catalogue-ws@149349 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Costantino Perciante 2017-06-09 08:38:04 +00:00
parent 025c13a8ca
commit dee8a06874
1 changed files with 3 additions and 0 deletions

View File

@ -785,6 +785,9 @@ public class CatalogueUtils {
if(hasControlledVocabulary){
List<String> valuesVocabulary = metadataField.getVocabulary().getVocabularyFields();
if(valuesVocabulary == null || valuesVocabulary.isEmpty())
return;
boolean match = false;
for (String valueVocabulary : valuesVocabulary) {