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

[tor-commits] [onionoo/master] Fix NullPointerException.



commit 92ab5af19a9d8f7f2427c4b609c23600eb86fe57
Author: Karsten Loesing <karsten.loesing@xxxxxxx>
Date:   Sat Dec 13 11:32:03 2014 +0100

    Fix NullPointerException.
    
    Introduced in a96e55ce18e3e4b89eae5bc6e318db6217460192.
---
 .../org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java  |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java b/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
index ef87233..33a8302 100644
--- a/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
+++ b/src/main/java/org/torproject/onionoo/updater/NodeDetailsStatusUpdater.java
@@ -275,8 +275,9 @@ public class NodeDetailsStatusUpdater implements DescriptorListener,
         DetailsStatus.class, true, fingerprint);
     if (detailsStatus == null) {
       detailsStatus = new DetailsStatus();
-    } else if (descriptor.getPublishedMillis() <=
-        detailsStatus.getDescPublished()) {
+    } else if (detailsStatus.getDescPublished() != null &&
+        detailsStatus.getDescPublished() >=
+        descriptor.getPublishedMillis()) {
       /* Already parsed more recent server descriptor from this bridge. */
       return;
     }

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