[tor-commits] [onionoo/master] Don't break if there are no fingerprint listeners.

karsten at torproject.org karsten at torproject.org
Wed Jun 18 15:09:14 UTC 2014


commit 0dc641ea466c1388e5fca5921850f40b44dd9823
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date:   Tue Jun 17 22:35:53 2014 +0200

    Don't break if there are no fingerprint listeners.
---
 src/org/torproject/onionoo/DescriptorSource.java |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/org/torproject/onionoo/DescriptorSource.java b/src/org/torproject/onionoo/DescriptorSource.java
index f3f88a3..a9b6175 100644
--- a/src/org/torproject/onionoo/DescriptorSource.java
+++ b/src/org/torproject/onionoo/DescriptorSource.java
@@ -559,6 +559,9 @@ public class DescriptorSource {
       for (DescriptorListener descriptorListener : descriptorListeners) {
         descriptorListener.processDescriptor(descriptor, relay);
       }
+      if (fingerprintListeners == null) {
+        continue;
+      }
       SortedSet<String> fingerprints = new TreeSet<String>();
       if (descriptorType == DescriptorType.RELAY_CONSENSUSES &&
           descriptor instanceof RelayNetworkStatusConsensus) {





More information about the tor-commits mailing list