mirror of
https://github.com/corda/corda.git
synced 2025-01-30 16:14:39 +00:00
CORDA-1805 Fixing the NPE with path parent (#3591)
This commit is contained in:
parent
dc3bd8de7a
commit
5dd85e08bf
@ -30,7 +30,7 @@ fun loadOrCreateKeyStore(keyStoreFilePath: Path, storePassword: String): KeyStor
|
|||||||
keyStoreFilePath.read { keyStore.load(it, pass) }
|
keyStoreFilePath.read { keyStore.load(it, pass) }
|
||||||
} else {
|
} else {
|
||||||
keyStore.load(null, pass)
|
keyStore.load(null, pass)
|
||||||
keyStoreFilePath.parent.createDirectories()
|
keyStoreFilePath.toAbsolutePath().parent?.createDirectories()
|
||||||
keyStoreFilePath.write { keyStore.store(it, pass) }
|
keyStoreFilePath.write { keyStore.store(it, pass) }
|
||||||
}
|
}
|
||||||
return keyStore
|
return keyStore
|
||||||
|
Loading…
x
Reference in New Issue
Block a user