Project

General

Profile

Revision 1749b4af

ID1749b4afedd5cbcbaccaf37ee7a87ce57378fcf0
Parent ed596689
Child d66d2ebd

Added by Katja Luther about 2 years ago

ref #7854: avoid NPE

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonNodeServiceImpl.java
1053 1053
               true, true, propertyPaths);
1054 1054
        List<TaxonDistributionDTO> result = new ArrayList<>();
1055 1055
        for(TaxonNode node:nodes){
1056
            TaxonDistributionDTO dto = new TaxonDistributionDTO(node.getTaxon());
1057
            result.add(dto);
1056
            if (node.getTaxon() != null){
1057
                TaxonDistributionDTO dto = new TaxonDistributionDTO(node.getTaxon());
1058
                result.add(dto);
1059
            }
1060

  
1058 1061
        }
1059 1062

  
1060 1063
        return result;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)