[or-cvs] [ernie/master] Fix NPE in the new logging code.

karsten at torproject.org karsten at torproject.org
Thu Apr 15 13:03:06 UTC 2010


Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Thu, 15 Apr 2010 15:02:09 +0200
Subject: Fix NPE in the new logging code.
Commit: d4223c264e18b4742177f018eb9944b40d50eeea

---
 src/RelayDescriptorDownloader.java |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/RelayDescriptorDownloader.java b/src/RelayDescriptorDownloader.java
index 00b0c4f..f9182b3 100644
--- a/src/RelayDescriptorDownloader.java
+++ b/src/RelayDescriptorDownloader.java
@@ -199,15 +199,15 @@ public class RelayDescriptorDownloader {
             + "! This means that we might forget to dowload relay "
             + "descriptors we are missing.", e);
       }
+    }
 
-      dumpStats = new StringBuilder();
-      dumpStats.append("Finished downloading relay descriptors from the "
+    dumpStats = new StringBuilder();
+    dumpStats.append("Finished downloading relay descriptors from the "
         + "directory authorities:\nAt the beginning of this execution, "
         + "we were missing " + missingConsensuses + " consensus(es), "
         + missingVotes + " vote(s), " + missingServerDescriptors
         + " server descriptor(s), and " + missingExtraInfoDescriptors
         + " extra-info descriptor(s).\n");
-    }
   }
 
   /**
-- 
1.6.5



More information about the tor-commits mailing list