Project

General

Profile

« Previous | Next » 

Revision 10f4a3fd

Added by Katja Luther over 2 years ago

ref #9710: avoid NPEs

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/dto/DescriptionBaseDto.java
42 42

  
43 43
    private UuidAndTitleCache<TaxonName> nameUuidAndTitleCache;
44 44

  
45
    private List<DescriptionElementDto> elements;
45
    private List<DescriptionElementDto> elements = new ArrayList<>();
46 46

  
47 47
    private EnumSet<DescriptionType> types = EnumSet.noneOf(DescriptionType.class);
48 48

  
......
53 53
        this.specimenDto = specimenDto;
54 54
        this.nameUuidAndTitleCache = nameUuidAndTitleCache;
55 55
        this.id = id;
56
        this.elements = elements;
56
        if (elements != null){
57
            this.elements = elements;
58
        }
57 59
        this.types = types;
58 60

  
59 61

  

Also available in: Unified diff