mirror of
https://github.com/torproject/collector.git
synced 2024-11-27 11:20:25 +00:00
Fix NullPointerExceptions in certain configurations.
This commit is contained in:
parent
4681ef862e
commit
a0943a8dda
@ -84,21 +84,27 @@ public class Main {
|
||||
if (config.getImportCachedRelayDescriptors()) {
|
||||
new CachedRelayDescriptorReader(rdp,
|
||||
config.getCachedRelayDescriptorDirectory());
|
||||
aw.intermediateStats("importing relay descriptors from local Tor "
|
||||
+ "data directories");
|
||||
if (aw != null) {
|
||||
aw.intermediateStats("importing relay descriptors from local "
|
||||
+ "Tor data directories");
|
||||
}
|
||||
}
|
||||
if (config.getImportDirectoryArchives()) {
|
||||
new ArchiveReader(rdp, config.getDirectoryArchivesDirectory(),
|
||||
config.getKeepDirectoryArchiveImportHistory());
|
||||
aw.intermediateStats("importing relay descriptors from local "
|
||||
+ "directory");
|
||||
if (aw != null) {
|
||||
aw.intermediateStats("importing relay descriptors from local "
|
||||
+ "directory");
|
||||
}
|
||||
}
|
||||
if (rdd != null) {
|
||||
rdd.downloadMissingDescriptors();
|
||||
rdd.writeFile();
|
||||
rdd = null;
|
||||
aw.intermediateStats("downloading relay descriptors from the "
|
||||
+ "directory authorities");
|
||||
if (aw != null) {
|
||||
aw.intermediateStats("downloading relay descriptors from the "
|
||||
+ "directory authorities");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user