* ObjectIdentityBdbCache.java

avoid error if size() called after close()
This commit is contained in:
gojomo committed 2009-09-26 04:12:23 +00:00
1 parent 71aa2ad51d
commit 7bd6017448
1 file changed
+3
@@ -331,6 +331,9 @@ implements ObjectIdentityCache<String, V>, Closeable, Serializable {
* @see org.archive.util.ObjectIdentityCache#size()
*/
public int size() {
if(db==null) {
return 0;
}
return diskMap.size();
}