Project

General

Profile

Revision 046711ec

ID046711ec39c5beda60aeccc5b1d450d318cc9926
Parent 027f931b
Child a43ff87f

Added by Andreas Müller 6 months ago

ref #6581 checkSource uses OriginalSource.isEmpty for nomenclaturalSources

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/TaxonName.java
2276 2276

  
2277 2277
    //#6581
2278 2278
    private void checkNullSource() {
2279
        if (this.nomenclaturalSource == null){
2280
            return;
2281
        }else if (this.nomenclaturalSource.getCitation() != null
2282
           || this.nomenclaturalSource.getCitationMicroReference() != null
2283
           || this.nomenclaturalSource.getNameUsedInSource() != null
2284
           || isBlank(this.nomenclaturalSource.getOriginalNameString())){
2285
            //TODO what about supplemental data?
2286
                return;
2287
        }else{
2279
        if (this.nomenclaturalSource != null && this.nomenclaturalSource.isEmpty()){
2288 2280
            this.nomenclaturalSource = null;
2289 2281
        }
2290 2282
    }

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)