Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
fix for NPE in PerformanceMemory
Michael Peter Christen9ad84c5e9f2b
diff --git a/htroot/PerformanceMemory_p.java b/htroot/PerformanceMemory_p.javaindex 4a1b5942f..e37d66b33 100644--- a/htroot/PerformanceMemory_p.java+++ b/htroot/PerformanceMemory_p.java@@ -116,7 +116,9 @@ public class PerformanceMemory_p {prop.put("EcoList_" + c + "_tableKeyMem", Formatter.bytesToString(mem));prop.put("EcoList_" + c + "_tableKeyChunkSize", mapx.get(Table.StatKeys.tableKeyChunkSize));- mem = Long.parseLong(mapx.get(Table.StatKeys.tableValueMem));+ assert mapx.get(Table.StatKeys.tableValueMem) != null : mapx;+ v = mapx.get(Table.StatKeys.tableValueMem);+ mem = v == null ? 0 : Long.parseLong(v);totalmem += mem;prop.put("EcoList_" + c + "_tableValueMem", Formatter.bytesToString(mem));prop.put("EcoList_" + c + "_tableValueChunkSize", mapx.get(Table.StatKeys.tableValueChunkSize));