mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-20 01:26:52 -04: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()) {
|
||||
assert fs.get() != null;
|
||||
LOG.debug("start recording stats");
|
||||
Platform.runLater(() -> updateService.restart());
|
||||
Platform.runLater(() -> {
|
||||
lastActivity.set(Instant.now());
|
||||
updateService.restart();
|
||||
});
|
||||
} else {
|
||||
LOG.debug("stop recording stats");
|
||||
Platform.runLater(() -> updateService.cancel());
|
||||
|
||||
Reference in New Issue
Block a user