Changeset 4878


Ignore:
Timestamp:
03/03/09 08:02:41 (11 years ago)
Author:
melissa
Message:

Catch NumberFormatException when parsing plane data from the deconvolution log.

File:
1 edited

Legend:

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

    r4867 r4878  
    725725          values = (String[]) realValues.toArray(new String[0]); 
    726726 
    727           int zz = Integer.parseInt(values[0].trim()) - 1; 
    728           int index = getIndex(zz, cc, tt); 
    729           for (int i=1; i<keys.length; i++) { 
    730             addMeta("Plane " + index + " " + keys[i], values[i]); 
     727          try { 
     728            int zz = Integer.parseInt(values[0].trim()) - 1; 
     729            int index = getIndex(zz, cc, tt); 
     730            for (int i=1; i<keys.length; i++) { 
     731              addMeta("Plane " + index + " " + keys[i], values[i]); 
     732            } 
    731733          } 
     734          catch (NumberFormatException e) { } 
    732735          line = s.readLine().trim(); 
    733736        } 
Note: See TracChangeset for help on using the changeset viewer.