Changeset 269


Ignore:
Timestamp:
May 15, 2007, 2:29:26 PM (16 years ago)
Author:
Johan Enell
Message:

made findFieldIntList a little bir more stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/se/lu/onk/BaseFile/src/basefile/BASEFileSection.java

    r264 r269  
    217217    String s = headers.get(name);
    218218    if (s == null) return null;
     219    if (s.equals("")) return new ArrayList<String>();
    219220    return new ArrayList<String>(Arrays.asList(s.split("\\t")));
    220221
     
    231232  public final List<Integer> findFieldIntList(String name)
    232233  {
    233     String s = headers.get(name);
    234     if (s == null) return null;
     234    List<String> stringList = this.findFieldList(name);
     235    if (stringList == null) return null;
    235236    ArrayList<Integer> ret = new ArrayList<Integer>();
    236     for (String assay : Arrays.asList(s.split("\\t")))
     237    for (String assay : stringList)
    237238    {
    238239      ret.add(new Integer(assay));
Note: See TracChangeset for help on using the changeset viewer.