mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-21 13:16:03 +00:00
* ObjectIdentityBdbCache.java
avoid error if size() called after close()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user