Changeset 2300


Ignore:
Timestamp:
02/20/07 11:47:17 (13 years ago)
Author:
curtis
Message:

Fix more NullPointerExceptions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/plugins/LociUploader.java

    r2299 r2300  
    120120          new Integer(imp.getNFrames()), 
    121121          new Integer(pixelType), 
    122           new Boolean(!fi.intelByteOrder), 
     122          fi == null ? Boolean.TRUE : new Boolean(!fi.intelByteOrder), 
    123123          "XYCZT",  // TODO : figure out a way to calculate the dimension order 
    124124          null, 
    125125          null); 
    126126 
    127         store.setImage(fi.fileName, null, fi.info, null); 
     127        String name = fi == null ? imp.getTitle() : fi.fileName; 
     128        store.setImage(name, null, fi == null ? null : fi.info, null); 
    128129 
    129130      } 
Note: See TracChangeset for help on using the changeset viewer.