Project

General

Profile

Revision 32495c5f

ID32495c5f2036065b7e1206d6497ebe8bbe6c24c4
Parent 090f1450
Child c26edffc

Added by Andreas Müller over 3 years ago

exception handling for classification filter in getAcceptedTaxonFor

View differences:

cdmlib-services/src/main/java/eu/etaxonomy/cdm/api/service/TaxonServiceImpl.java
520 520
            try {
521 521
                classificationFilter = classificationDao.load(classificationUuid);
522 522
            } catch (NullPointerException e){
523
                //TODO not sure, why an NPE should be thrown in the above load method
523 524
                throw new EntityNotFoundException("No Classification entity found for " + classificationUuid);
524 525
            }
525 526
            if(classificationFilter == null){
526

  
527
                throw new EntityNotFoundException("No Classification entity found for " + classificationUuid);
527 528
            }
528 529
        }
529 530

  

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)