Changeset 4678


Ignore:
Timestamp:
12/08/08 08:30:53 (11 years ago)
Author:
melissa
Message:

Don't close the stream if it is null.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/common/src/loci/common/RandomAccessStream.java

    r4673 r4678  
    513513 
    514514      if (afp < fp) { 
    515         dis.close(); 
     515        if (dis != null) dis.close(); 
    516516 
    517517        BufferedInputStream bis = new BufferedInputStream( 
     
    661661      String path = f.getPath().toLowerCase(); 
    662662 
    663       dis.close(); 
     663      if (dis != null) dis.close(); 
    664664 
    665665      if (path.endsWith(".gz")) { 
Note: See TracChangeset for help on using the changeset viewer.