projects
/
mir.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2198ec9
)
debugging DatabaseCache
author
idfx
<idfx>
Wed, 6 Feb 2002 20:05:54 +0000
(20:05 +0000)
committer
idfx
<idfx>
Wed, 6 Feb 2002 20:05:54 +0000
(20:05 +0000)
source/mir/storage/DatabaseCache.java
patch
|
blob
|
history
diff --git
a/source/mir/storage/DatabaseCache.java
b/source/mir/storage/DatabaseCache.java
index
dd1fcf0
..
1c38842
100755
(executable)
--- a/
source/mir/storage/DatabaseCache.java
+++ b/
source/mir/storage/DatabaseCache.java
@@
-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;