mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-08-20 22:26:02 +00:00
fix NPE in autolocker, when reading "lastActivity" before any activity happened
This commit is contained in:
@@ -58,7 +58,10 @@ public class VaultStats {
|
|||||||
if (VaultState.Value.UNLOCKED == state.get()) {
|
if (VaultState.Value.UNLOCKED == state.get()) {
|
||||||
assert fs.get() != null;
|
assert fs.get() != null;
|
||||||
LOG.debug("start recording stats");
|
LOG.debug("start recording stats");
|
||||||
Platform.runLater(() -> updateService.restart());
|
Platform.runLater(() -> {
|
||||||
|
lastActivity.set(Instant.now());
|
||||||
|
updateService.restart();
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
LOG.debug("stop recording stats");
|
LOG.debug("stop recording stats");
|
||||||
Platform.runLater(() -> updateService.cancel());
|
Platform.runLater(() -> updateService.cancel());
|
||||||
|
|||||||
Reference in New Issue
Block a user