Revision 48f770f5
Added by Andreas Müller about 5 years ago
cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/TaxonDistributionDTO.java | ||
---|---|---|
36 | 36 |
public TaxonDistributionDTO(Taxon taxon){ |
37 | 37 |
this.taxonUUID = taxon.getUuid(); |
38 | 38 |
taxon = HibernateProxyHelper.deproxy(taxon); |
39 |
this.nameCache = taxon.getName() != null ? taxon.getName().getNameCache(): taxon.getName().getTitleCache();
|
|
39 |
this.nameCache = taxon.getName() != null ? taxon.getName().getNameCache(): taxon.getTitleCache(); |
|
40 | 40 |
if (nameCache == null){ |
41 | 41 |
nameCache = taxon.getTitleCache(); |
42 | 42 |
} |
Also available in: Unified diff
ref #7854 Fix NPE in TaxonDistributionDTO