Project

General

Profile

« Previous | Next » 

Revision ac37cbca

Added by Andreas Müller over 5 years ago

fix incorrect handling of empty notes in AnnotationMapper

View differences:

cdmlib-io/src/main/java/eu/etaxonomy/cdm/io/common/mapping/DbImportAnnotationMapper.java
141 141
	@Override
142 142
	protected AnnotatableEntity doInvoke(AnnotatableEntity annotatableEntity, Object dbValue){
143 143
		String strAnnotation = (String)dbValue;
144
		if (CdmUtils.isNotEmpty(strAnnotation));{
144
		if (StringUtils.isNotBlank(strAnnotation)){
145 145
			Annotation annotation = Annotation.NewInstance(strAnnotation, annotationType, language);
146 146
			if (annotatableEntity != null){
147 147
				annotatableEntity.addAnnotation(annotation);

Also available in: Unified diff