Changeset 4751


Ignore:
Timestamp:
01/20/09 13:07:09 (11 years ago)
Author:
melissa
Message:

Fixed ArrayIndexOutOfBoundsException.

File:
1 edited

Legend:

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

    r4731 r4751  
    434434      store.setDetectorSettingsBinning(binning, 0, i); 
    435435      store.setDetectorSettingsGain(new Float(gain), 0, i); 
    436       store.setDetectorSettingsVoltage((Float) voltage.get(i), 0, i); 
     436      if (i < voltage.size()) { 
     437        store.setDetectorSettingsVoltage((Float) voltage.get(i), 0, i); 
     438      } 
    437439      store.setDetectorSettingsDetector(detectorID, 0, i); 
    438440    } 
Note: See TracChangeset for help on using the changeset viewer.