* StoredQueue.java

protect isEmpty() like size() for access after backing BDB closed
This commit is contained in:
gojomo
2011-01-14 22:07:01 +00:00
parent 402b9a45a6
commit df1d064598
@@ -103,7 +103,11 @@ public class StoredQueue<E extends Serializable> extends AbstractQueue<E> {
if(peekItem!=null) {
return false;
}
return queueMap.isEmpty();
try {
return queueMap.isEmpty();
} catch (IllegalStateException de) {
return true;
}
}
public boolean offer(E o) {