Changeset 4126


Ignore:
Timestamp:
06/21/08 07:29:41 (11 years ago)
Author:
melissa
Message:

Fixed NPE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/MinMaxCalculator.java

    r4121 r4126  
    328328    minMaxDone[series]++; 
    329329 
    330     if (minMaxDone[series] == getImageCount()) { 
     330    if (minMaxDone[series] == getImageCount() && minMaxStore != null) { 
    331331      for (int c=0; c<getSizeC(); c++) { 
    332332        minMaxStore.setChannelGlobalMinMax(c, chanMin[series][c], 
     
    405405    minMaxDone[series]++; 
    406406 
    407     if (minMaxDone[getSeries()] == getImageCount()) { 
    408       MetadataStore store = getMetadataStore(); 
     407    if (minMaxDone[getSeries()] == getImageCount() && minMaxStore != null) { 
    409408      for (int c=0; c<getSizeC(); c++) { 
    410409        minMaxStore.setChannelGlobalMinMax(c, chanMin[getSeries()][c], 
Note: See TracChangeset for help on using the changeset viewer.