NPE when using TaxonNaturalComparator
When sorting a taxon hierarchy like the following:
/* * Classification * * Abies * `- Abies alba * * Pinus * `- Pinus pampa */
the comparator throws an NPE when sorting Abies alba and Pinus pampa.
Updated by Patrick Plitzner over 6 years ago
- Assignee changed from Patrick Plitzner to Katja Luther
The NPE should be fixed with the attached revision. But I am not sure what the correct natural ordering of taxa looks like.
@Katja: Could you implement the missing check for the correct order in the test eu.etaxonomy.cdm.api.service.TaxonNodeServiceImplTest.testCompareNaturalOrder()?