Changeset 2129


Ignore:
Timestamp:
01/19/07 13:23:16 (13 years ago)
Author:
melissa
Message:

Make sure the id map is not null.

File:
1 edited

Legend:

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

    r2127 r2129  
    4444 
    4545  /** Map from given filenames to actual filenames. */ 
    46   private static Hashtable idMap; 
     46  private static Hashtable idMap = new Hashtable(); 
    4747 
    4848  // -- Constructors -- 
     
    108108  public static Hashtable getIdMap() { return idMap; } 
    109109 
    110   public static void setIdMap(Hashtable map) { idMap = map; } 
     110  public static void setIdMap(Hashtable map) {  
     111    if (map != null) idMap = map;  
     112    else idMap = new Hashtable(); 
     113  } 
    111114 
    112115  /* @see java.io.File#canRead() */ 
Note: See TracChangeset for help on using the changeset viewer.