From: David ‘Bombe’ Roden Date: Tue, 20 Jan 2009 20:58:18 +0000 (+0100) Subject: Initialize new key store before firing event. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;ds=inline;h=62bcabc3fedcf410ab013375010e062da64d596c;hp=a472334662c884abba8d2c1d47bed9f0c11525d3;p=jkeytool.git Initialize new key store before firing event. --- 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); } }