Changeset 7156


Ignore:
Timestamp:
11/05/10 10:32:12 (9 years ago)
Author:
melissa
Message:

Hackish fix for potential IndexOutOfBoundsException; the real fix should be part of #577.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.2/components/bio-formats/src/loci/formats/in/LeicaHandler.java

    r7102 r7156  
    506506        if (channel == null) channel = new Channel(); 
    507507        if (id.endsWith("ExposureTime")) { 
    508           store.setPlaneExposureTime(new Double(value), numDatasets, c); 
     508          try { 
     509            store.setPlaneExposureTime(new Double(value), numDatasets, c); 
     510          } 
     511          catch (IndexOutOfBoundsException e) { } 
    509512        } 
    510513        else if (id.endsWith("Gain")) { 
  • trunk/components/bio-formats/src/loci/formats/in/LeicaHandler.java

    r7055 r7156  
    506506        if (channel == null) channel = new Channel(); 
    507507        if (id.endsWith("ExposureTime")) { 
    508           store.setPlaneExposureTime(new Double(value), numDatasets, c); 
     508          try { 
     509            store.setPlaneExposureTime(new Double(value), numDatasets, c); 
     510          } 
     511          catch (IndexOutOfBoundsException e) { } 
    509512        } 
    510513        else if (id.endsWith("Gain")) { 
Note: See TracChangeset for help on using the changeset viewer.