Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

fix for NPE in statistic servlet

orbiter1a6c2f77b4df
diff --git a/source/net/yacy/kelondro/table/Table.java b/source/net/yacy/kelondro/table/Table.java
index c7e061d22..56ce8d58d 100644
--- a/source/net/yacy/kelondro/table/Table.java
+++ b/source/net/yacy/kelondro/table/Table.java
@@ -280,7 +280,7 @@ public class Table implements ObjectIndex, Iterable<Row.Entry> {
private final Map<String, String> memoryStats() {
// returns statistical data about this object
- synchronized (table) {
+ synchronized (this) {
assert table == null || table.size() == index.size() : "table.size() = " + table.size() + ", index.size() = " + index.size();
}
final HashMap<String, String> map = new HashMap<String, String>(8);