Revision e0211b4b
Added by Katja Luther over 2 years ago
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
avoid NPE