mirror of
https://github.com/corda/corda.git
synced 2025-02-20 01:16:42 +00:00
CORDA-3831: Prevent CordappImpl TEST_INSTANCE crashing node when PWD is file-system root directory. (#6360)
This commit is contained in:
parent
26d4bfb89f
commit
0f1bfb13da
@ -47,7 +47,7 @@ data class CordappImpl(
|
||||
}
|
||||
|
||||
companion object {
|
||||
fun jarName(url: URL): String = url.toPath().fileName.toString().removeSuffix(".jar")
|
||||
fun jarName(url: URL): String = (url.toPath().fileName ?: "").toString().removeSuffix(".jar")
|
||||
|
||||
/** CorDapp manifest entries */
|
||||
const val CORDAPP_CONTRACT_NAME = "Cordapp-Contract-Name"
|
||||
@ -81,7 +81,7 @@ data class CordappImpl(
|
||||
serializationCustomSerializers = emptyList(),
|
||||
customSchemas = emptySet(),
|
||||
jarPath = Paths.get("").toUri().toURL(),
|
||||
info = CordappImpl.UNKNOWN_INFO,
|
||||
info = UNKNOWN_INFO,
|
||||
allFlows = emptyList(),
|
||||
jarHash = SecureHash.allOnesHash,
|
||||
minimumPlatformVersion = 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user