fix for null metadatafields
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/ckan-metadata-publisher-widget@149115 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
3bb6a3155f
commit
37041ebf38
|
@ -177,6 +177,7 @@ public class MetadataDiscovery {
|
||||||
Map<String, List<MetadataFieldWrapper>> fieldsPerCategory = new HashMap<String, List<MetadataFieldWrapper>>(categoriesWrapper.size());
|
Map<String, List<MetadataFieldWrapper>> fieldsPerCategory = new HashMap<String, List<MetadataFieldWrapper>>(categoriesWrapper.size());
|
||||||
|
|
||||||
// manage the fields
|
// manage the fields
|
||||||
|
if(fields != null)
|
||||||
for(MetadataField metadataField: fields){
|
for(MetadataField metadataField: fields){
|
||||||
|
|
||||||
MetadataFieldWrapper wrapperObj = new MetadataFieldWrapper();
|
MetadataFieldWrapper wrapperObj = new MetadataFieldWrapper();
|
||||||
|
|
Loading…
Reference in New Issue