I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit ad00c16f authored by zzz's avatar zzz
Browse files

fix NPE

parent ebe7f3b1
No related branches found
No related tags found
No related merge requests found
...@@ -244,8 +244,9 @@ class PeerCheckerTask extends TimerTask ...@@ -244,8 +244,9 @@ class PeerCheckerTask extends TimerTask
coordinator.setRateHistory(uploaded, downloaded); coordinator.setRateHistory(uploaded, downloaded);
// close out unused files, but we don't need to do it every time // close out unused files, but we don't need to do it every time
if (random.nextInt(4) == 0) Storage storage = coordinator.getStorage();
coordinator.getStorage().cleanRAFs(); if (storage != null && random.nextInt(4) == 0) {
storage.cleanRAFs();
}
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment