Revision 4643b84a
Added by Andreas Müller almost 6 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelOccurrenceSourceImport.java | ||
---|---|---|
235 | 235 |
} |
236 | 236 |
List<INonViralName> names = new ArrayList<>(); |
237 | 237 |
// names = getNameService().getNamesByNameCache(oldName); |
238 |
if (names.size() == 1){
|
|
239 |
return names.get(0);
|
|
238 |
if (names.isEmpty()){
|
|
239 |
return null;
|
|
240 | 240 |
}else { |
241 | 241 |
if (names.size()> 1){ |
242 | 242 |
logger.info("There is more than one name matching oldName: " + oldName + "."); |
Also available in: Unified diff
fix occurrence source import