debugging DatabaseCache
authoridfx <idfx>
Wed, 6 Feb 2002 20:05:54 +0000 (20:05 +0000)
committeridfx <idfx>
Wed, 6 Feb 2002 20:05:54 +0000 (20:05 +0000)
source/mir/storage/DatabaseCache.java

index dd1fcf0..1c38842 100755 (executable)
@@ -37,7 +37,7 @@ public class DatabaseCache {
       
   public int containsKey(String key){
     for(int i = 0; i<_cache.size(); i++){
-      if( ((Entry)_cache.get(i)).getKey().equals(key) )
+      if( _cache.get(i)!=null && ((Entry)_cache.get(i)).getKey().equals(key) )
         return i;
     }
     return -1;