Revision: 14759
          http://gate.svn.sourceforge.net/gate/?rev=14759&view=rev
Author:   ian_roberts
Date:     2011-12-13 17:02:39 +0000 (Tue, 13 Dec 2011)
Log Message:
-----------
Ignore features with null values when constructing the tag string.

Modified Paths:
--------------
    
mimir/trunk/mimir-core/src/gate/mimir/index/OriginalMarkupMetadataHelper.java

Modified: 
mimir/trunk/mimir-core/src/gate/mimir/index/OriginalMarkupMetadataHelper.java
===================================================================
--- 
mimir/trunk/mimir-core/src/gate/mimir/index/OriginalMarkupMetadataHelper.java   
    2011-12-13 14:59:36 UTC (rev 14758)
+++ 
mimir/trunk/mimir-core/src/gate/mimir/index/OriginalMarkupMetadataHelper.java   
    2011-12-13 17:02:39 UTC (rev 14759)
@@ -337,7 +337,7 @@
     tagDesc.append(tagNameForAnnotation(ann));
     List<String> featNames = new ArrayList<String>();
     for(Map.Entry<Object, Object> entry : ann.getFeatures().entrySet()){
-      if(entry.getKey() instanceof String){
+      if((entry.getKey() instanceof String) && (entry.getValue() != null)){
         featNames.add((String)entry.getKey());
       }
     }

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and 
improve service delivery. Take 5 minutes to use this Systems Optimization 
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
_______________________________________________
GATE-cvs mailing list
GATE-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to