Project

General

Profile

Revision 380b0e35

ID380b0e353b61b451d378c7d4341c111a11534c32
Parent 78bba475
Child ac56518d

Added by Andreas Kohlbecker over 1 year ago

fix #8428 avoiding NPE

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/ClassificationPortalListController.java
194 194
        TaxonNode subtree = getSubtreeOrError(subtreeUuid, taxonNodeService, response);
195 195
        Rank rank = findRank(rankUuid);
196 196
        Taxon taxon = (Taxon) taxonService.load(taxonUuid);
197

  
197
        if(classification == null){
198
            HttpStatusMessage.UUID_INVALID.send(response, "Classification uuid does not exist.");
199
            return null;
200
        }
198 201
        try {
199 202
            List<TaxonNode> result = service.loadTreeBranchToTaxon(taxon, classification, subtree, rank, includeUnpublished, NODE_INIT_STRATEGY);
200 203
            return result;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)