Fix NPE in RocksDBHashtable.close()
@@ -106,8 +106,7 @@ public class RocksDBHashtable<T> implements HashtableDb<T>, Closeable {
}
@Override
- public void close() {
- synchronized(db) {
+ public synchronized void close() {
if (db != null) {
db.close();
db = null;
@@ -115,7 +114,6 @@ public class RocksDBHashtable<T> implements HashtableDb<T>, Closeable {
options = null;
}
}
- }
@Override
public TupleIterator<T> iterator() {
