-
Bug
-
Resolution: Done
-
Critical
-
None
-
None
-
None
Coverity found possible null dereference as getEntry() could return null.
KeyStoreCredentialStore.java
void store(OutputStream outputStream) throws IOException, GeneralSecurityException { ObjectOutputStream oos = new ObjectOutputStream(outputStream); oos.writeInt(VERSION); Enumeration<String> ksAliases = dataKeyStore.aliases(); while(ksAliases.hasMoreElements()) { String alias = ksAliases.nextElement(); KeyStore.Entry entry = dataKeyStore.getEntry(alias, convertParameter(protectionParameter)); if (entry instanceof KeyStore.SecretKeyEntry) { saveSecretKey(alias, oos, (KeyStore.SecretKeyEntry)entry); } else { throw log.unrecognizedEntryType(entry.getClass().getCanonicalName()); } } oos.flush(); oos.close(); }
- clones
-
JBEAP-10078 Coverity, derefere null return value in KeyStoreCredentialStore.store
- Closed