[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 0dc641ea466c1388e5fca5921850f40b44dd9823
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
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) {



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits