File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
hub/src/main/java/cloud/katta/protocols/hub Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 66
77import ch .cyberduck .core .Path ;
88import ch .cyberduck .core .PathAttributes ;
9+ import ch .cyberduck .core .features .Vault ;
910import ch .cyberduck .core .synchronization .Comparison ;
1011import ch .cyberduck .core .synchronization .ComparisonService ;
1112import ch .cyberduck .core .vault .VaultUnlockCancelException ;
@@ -44,7 +45,12 @@ private ComparisonService getFeature(final Path vault) throws VaultUnlockCancelE
4445 if (null == vault ) {
4546 return ComparisonService .disabled ;
4647 }
47- final HubUVFVault cryptomator = (HubUVFVault ) session .getRegistry ().find (session , vault );
48- return cryptomator .getStorage ().getFeature (ComparisonService .class );
48+ final Vault impl = session .getRegistry ().find (session , vault );
49+ if (impl instanceof HubUVFVault ) {
50+ final HubUVFVault cryptomator = (HubUVFVault ) impl ;
51+ return cryptomator .getStorage ().getFeature (ComparisonService .class );
52+ }
53+ // Disabled
54+ return ComparisonService .disabled ;
4955 }
5056}
You can’t perform that action at this time.
0 commit comments