From: <rv...@us...> - 2012-02-04 00:10:20
|
Revision: 1052 http://treebase.svn.sourceforge.net/treebase/?rev=1052&view=rev Author: rvos Date: 2012-02-04 00:10:14 +0000 (Sat, 04 Feb 2012) Log Message: ----------- Now checks whether Darwin Core semantic annotation values are empty strings (which, it appears, they might be). Modified Paths: -------------- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlMatrixWriter.java Modified: trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlMatrixWriter.java =================================================================== --- trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlMatrixWriter.java 2012-02-03 23:47:25 UTC (rev 1051) +++ trunk/treebase-core/src/main/java/org/cipres/treebase/domain/nexus/nexml/NexmlMatrixWriter.java 2012-02-04 00:10:14 UTC (rev 1052) @@ -8,6 +8,7 @@ import java.util.Set; import org.cipres.treebase.Constants; +import org.cipres.treebase.TreebaseUtil; import org.cipres.treebase.domain.matrix.CharSet; import org.cipres.treebase.domain.matrix.CharacterMatrix; import org.cipres.treebase.domain.matrix.ColumnRange; @@ -451,7 +452,7 @@ for ( String predicate : predicateToObjectMap.keySet() ) { String objectString = predicateToObjectMap.get(predicate); - if ( null != objectString ) { + if ( ! TreebaseUtil.isEmpty(objectString) ) { xmlAnnotatable.addAnnotationValue(predicate, Constants.DwCURI, objectString); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |