From 1c145cbc0926d0cd12a16bc7c5306dadd7d40e34 Mon Sep 17 00:00:00 2001
From: jrandom <jrandom>
Date: Fri, 16 Apr 2004 03:21:20 +0000
Subject: [PATCH] handle corruption / race during update of the peer's
 routerInfo data

---
 .../java/src/net/i2p/netmonitor/PeerSummaryReader.java          | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/apps/netmonitor/java/src/net/i2p/netmonitor/PeerSummaryReader.java b/apps/netmonitor/java/src/net/i2p/netmonitor/PeerSummaryReader.java
index d1cf2042a7..1a132cf911 100644
--- a/apps/netmonitor/java/src/net/i2p/netmonitor/PeerSummaryReader.java
+++ b/apps/netmonitor/java/src/net/i2p/netmonitor/PeerSummaryReader.java
@@ -84,6 +84,8 @@ class PeerSummaryReader {
             }
         }
         
+        if (summary == null)
+            return;
         summary.coallesceData(monitor.getSummaryDurationHours() * 60*60*1000);
         monitor.addSummary(summary);
     }
-- 
GitLab