Project

General

Profile

« Previous | Next » 

Revision e0211b4b

Added by Katja Luther over 2 years ago

avoid NPE

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dto/AbstractTermDto.java
43 43
        this.uuid = uuid;
44 44
        this.titleCache = titleCache;
45 45

  
46
        for(Representation rep: representations){
47
            this.representations.add(rep.clone());
46
        if (representations != null){
47
            for(Representation rep: representations){
48
                this.representations.add(rep.clone());
49
            }
48 50
        }
49 51
    }
50 52

  

Also available in: Unified diff