mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-22 12:41:27 +00:00
fixed NPE [ci skip]
This commit is contained in:
@@ -19,6 +19,9 @@ public class UpgradeStrategies {
|
||||
}
|
||||
|
||||
public Optional<UpgradeStrategy> getUpgradeStrategy(Vault vault) {
|
||||
if (vault == null) {
|
||||
return Optional.empty();
|
||||
}
|
||||
return strategies.stream().filter(strategy -> {
|
||||
return strategy.isApplicable(vault);
|
||||
}).findFirst();
|
||||
|
||||
Reference in New Issue
Block a user