mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-20 22:59:54 +01:00
Catch any Exception when generating stored key.
This commit is contained in:
@@ -399,7 +399,7 @@ class CryptoComponentImpl implements CryptoComponent {
|
|||||||
kg.init(spec);
|
kg.init(spec);
|
||||||
storedKey = kg.generateKey();
|
storedKey = kg.generateKey();
|
||||||
break;
|
break;
|
||||||
} catch (GeneralSecurityException e1) {
|
} catch (Exception e1) {
|
||||||
if (LOG.isLoggable(INFO))
|
if (LOG.isLoggable(INFO))
|
||||||
LOG.info("Could not generate key: " + e1);
|
LOG.info("Could not generate key: " + e1);
|
||||||
// Fall back to next spec
|
// Fall back to next spec
|
||||||
|
|||||||
Reference in New Issue
Block a user