Project

General

Profile

Revision d5d8d750

IDd5d8d7503f33e5d28fab69dc97759c1bb60edad0
Parent 5ca67609
Child bc9db6bf

Added by Andreas Müller about 3 years ago

return error if passing not existing classification uuid to taxon search web service

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/controller/TaxonListController.java
345 345
             highlighting = false;
346 346
         }
347 347

  
348
         Classification classification = null;
349
         if(treeUuid != null){
350
            classification = classificationService.find(treeUuid);
351
         }
348
         Classification classification = getClassificationOrError(treeUuid, classificationService, response);
352 349
         TaxonNode subtree = getSubtreeOrError(subtreeUuid, taxonNodeService, response);
353 350

  
354 351
         List<Feature> features = null;
355 352
         if(featureUuids != null){
356 353
            features = new ArrayList<>(featureUuids.size());
357 354
            for(UUID uuid : featureUuids){
358
                features.add((Feature) termService.find(uuid));
355
                //TODO error if null
356
                Feature feature = (Feature) termService.find(uuid);
357
                features.add(feature);
359 358
            }
360 359
         }
361 360

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)