}
private boolean hasDefaultValue(Feature feature, RowWrapperDTO<?> rowWrapperDTO) {
- if(rowWrapperDTO instanceof SpecimenRowWrapperDTO){
- SpecimenRowWrapperDTO specimenRowWrapper = (SpecimenRowWrapperDTO)rowWrapperDTO;
- return hasDefaultValue(feature, specimenRowWrapper.getDefaultDescription().getDescription());
+ if(rowWrapperDTO instanceof SpecimenRowWrapperDTO
+ && ((SpecimenRowWrapperDTO) rowWrapperDTO).getDefaultDescription()!=null){
+ return hasDefaultValue(feature, ((SpecimenRowWrapperDTO)rowWrapperDTO).getDefaultDescription().getDescription());
}
else if(rowWrapperDTO instanceof TaxonRowWrapperDTO){
TaxonRowWrapperDTO taxonRowWrapper = (TaxonRowWrapperDTO)rowWrapperDTO;