forked from I2P_Developers/i2p.i2p
fix NPE
This commit is contained in:
@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user