Changeset 5747


Ignore:
Timestamp:
12/17/09 09:15:25 (10 years ago)
Author:
melissa
Message:

One more exposure time parsing fix.

File:
1 edited

Legend:

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

    r5746 r5747  
    871871              value = value.substring(value.indexOf("=") + 1).trim(); 
    872872            } 
    873             else if (value.indexOf(" ") != -1) { 
     873            if (value.indexOf(" ") != -1) { 
    874874              value = value.substring(0, value.indexOf(" ")); 
    875875            } 
    876             double exposure = Double.parseDouble(value); 
    877             exposureTime = new Double(exposure / 1000); 
     876            try { 
     877              double exposure = Double.parseDouble(value); 
     878              exposureTime = new Double(exposure / 1000); 
     879            } 
     880            catch (NumberFormatException e) { } 
    878881          } 
    879882          else if (key.equals("Bit Depth")) { 
Note: See TracChangeset for help on using the changeset viewer.