Project

General

Profile

« Previous | Next » 

Revision d4542f66

Added by Andreas Müller over 2 years ago

ref #9814 fix NPE in TermDto.getVocRepresentation_L10n (+..._abbreviatedLabel)

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/dto/TermDto.java
143 143
//    }
144 144
//
145 145
    public String getVocRepresentation_L10n() {
146
        return vocabularyDto.getRepresentation_L10n();
146
        return vocabularyDto == null ? null : vocabularyDto.getRepresentation_L10n();
147 147
    }
148 148
//
149 149
//    public void setVocRepresentation_L10n_abbreviatedLabel(String vocRepresentation_L10n_abbreviatedLabel) {
......
151 151
//    }
152 152
//
153 153
    public String getVocRepresentation_L10n_abbreviatedLabel() {
154
        return vocabularyDto.getRepresentation_L10n_abbreviatedLabel();
154
        return vocabularyDto == null ? null : vocabularyDto.getRepresentation_L10n_abbreviatedLabel();
155 155
    }
156 156
//
157 157
//    protected void addVocRepresentation(Representation vocRepresentation){

Also available in: Unified diff