Changeset 6189


Ignore:
Timestamp:
04/24/10 19:25:15 (10 years ago)
Author:
curtis
Message:

Fix for NullPointerException, courtesy of Lee Kamentsky.

File:
1 edited

Legend:

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

    r6129 r6189  
    722722          store.setStagePositionPositionY(stageY[p], i, 0, p); 
    723723        } 
    724         if (p < zDistances.length) { 
     724        if (zDistances != null && p < zDistances.length) { 
    725725          if (zDistances[p] != 0d) distance += zDistances[p]; 
    726726          else distance += zDistances[0]; 
Note: See TracChangeset for help on using the changeset viewer.