File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/org/cryptomator/linux/keychain Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 16
16
@ OperatingSystem (OperatingSystem .Value .LINUX )
17
17
public class SecretServiceKeychainAccess implements KeychainAccessProvider {
18
18
19
- private static Logger LOG = LoggerFactory .getLogger (SecretServiceKeychainAccess .class );
19
+ private static final Logger LOG = LoggerFactory .getLogger (SecretServiceKeychainAccess .class );
20
20
21
21
private final String LABEL_FOR_SECRET_IN_KEYRING = "Cryptomator" ;
22
22
@@ -29,8 +29,8 @@ public String displayName() {
29
29
public boolean isSupported () {
30
30
try {
31
31
return SimpleCollection .isAvailable ();
32
- } catch (ExceptionInInitializerError e ) {
33
- LOG .warn ("Initializing secret service keychain access failed" , e .getException ());
32
+ } catch (RuntimeException | ExceptionInInitializerError e ) {
33
+ LOG .warn ("Initializing secret service keychain access failed" , e instanceof ExceptionInInitializerError errInit ? errInit .getException () : e );
34
34
return false ;
35
35
}
36
36
}
You can’t perform that action at this time.
0 commit comments