From 62bcabc3fedcf410ab013375010e062da64d596c Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Tue, 20 Jan 2009 21:58:18 +0100 Subject: [PATCH] Initialize new key store before firing event. --- src/net/pterodactylus/jkeytool/core/Core.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/net/pterodactylus/jkeytool/core/Core.java b/src/net/pterodactylus/jkeytool/core/Core.java index 7579fbf..e190015 100644 --- a/src/net/pterodactylus/jkeytool/core/Core.java +++ b/src/net/pterodactylus/jkeytool/core/Core.java @@ -83,9 +83,16 @@ public class Core { public void createKeyStore(String keyStoreType) { try { KeyStore keyStore = KeyStore.getInstance(keyStoreType); + keyStore.load(null, null); coreListenerSupport.fireKeyStoreCreated(keyStore); } catch (KeyStoreException kse1) { coreListenerSupport.fireKeyStoreNotCreated(keyStoreType, kse1); + } catch (NoSuchAlgorithmException nsae1) { + coreListenerSupport.fireKeyStoreNotCreated(keyStoreType, nsae1); + } catch (CertificateException ce1) { + coreListenerSupport.fireKeyStoreNotCreated(keyStoreType, ce1); + } catch (IOException ioe1) { + coreListenerSupport.fireKeyStoreNotCreated(keyStoreType, ioe1); } } -- 2.7.4