Changeset 6723


Ignore:
Timestamp:
10/30/15 18:55:03 (9 years ago)
Author:
davor.ostojic@oeaw.ac.at
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • vlo/branches/vlo-3.3-oeaw/vlo-importer/src/main/java/eu/clarin/cmdi/vlo/importer/CMDIParserVTDXML.java

    r6720 r6723  
    398398               
    399399                Map<String, String> crossMap = ((PostProcessorsWithVocabularyMap) processor).getCrossMappings(extractedValue);
    400                 for(Entry e: crossMap.entrySet()){
    401                         String toFacet = (String) e.getKey();
    402                         String value = (String) e.getValue();
    403                         for(String facetName: facetNames){
    404                                 if(toFacet.toLowerCase().equals(facetName.toLowerCase())){//normalize facet name, map can contain it in any case
    405                                         insertFacetValues(facetName, Arrays.asList(value), cmdiData, languageCode, config.getAllowMultipleValues(), config.isCaseInsensitive(), false);
    406                                 }
    407                         }
    408                 }
     400                if(crossMap != null)
     401                        for(Entry e: crossMap.entrySet()){
     402                                String toFacet = (String) e.getKey();
     403                                String value = (String) e.getValue();
     404                                for(String facetName: facetNames){
     405                                        if(toFacet.toLowerCase().equals(facetName.toLowerCase())){//normalize facet name, map can contain it in any case
     406                                                insertFacetValues(facetName, Arrays.asList(value), cmdiData, languageCode, config.getAllowMultipleValues(), config.isCaseInsensitive(), false);
     407                                        }
     408                                }
     409                        }
    409410            }
    410411        }
Note: See TracChangeset for help on using the changeset viewer.