Changeset 7467


Ignore:
Timestamp:
12/27/10 14:40:45 (9 years ago)
Author:
melissa
Message:

Fixed NPE introduced in r7433.

File:
1 edited

Legend:

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

    r7458 r7467  
    601601      for (int c=0; c<getEffectiveSizeC(); c++) { 
    602602        PlaneInfo plane = getPlane(new int[] {0, c, 0}); 
    603         store.setChannelName(plane.channelName, 0, c); 
    604         store.setDetectorSettingsID(detectorID, 0, c); 
     603        if (plane != null) { 
     604          store.setChannelName(plane.channelName, 0, c); 
     605          store.setDetectorSettingsID(detectorID, 0, c); 
     606        } 
    605607      } 
    606608 
Note: See TracChangeset for help on using the changeset viewer.