Changeset 4875


Ignore:
Timestamp:
03/02/09 15:00:10 (11 years ago)
Author:
curtis
Message:

When filtering metadata fields, check for empty strings
after performing the other types of filtering.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/FormatReader.java

    r4866 r4875  
    189189      if (!simple) return; 
    190190 
    191       // verify key & value are not empty 
    192       if (key.length() == 0) return; 
    193       if (string && val.length() == 0) return; 
    194  
    195191      // verify key & value are reasonable length 
    196192      int maxLen = 8192; 
     
    213209        if (string) val = val.replaceAll(invalidSequences[i], ""); 
    214210      } 
     211 
     212      // verify key & value are not empty 
     213      if (key.length() == 0) return; 
     214      if (string && val.trim().length() == 0) return; 
    215215 
    216216      if (string) value = val; 
Note: See TracChangeset for help on using the changeset viewer.