bug fix on null checking Corda.kt

This commit is contained in:
Konstantinos Chalkias 2017-06-06 18:30:01 +03:00 committed by Katarzyna Streich
parent 23ca884316
commit 0092071231

View File

@ -166,7 +166,7 @@ fun main(args: Array<String>) {
}
node.run()
} catch (e: Exception) {
if (e.message!!.startsWith("Unknown named curve:")) {
if (e.message?.startsWith("Unknown named curve:") ?: false) {
log.error("Exception during node startup - ${e.message}. " +
"This is a known OpenJDK issue on some Linux distributions, please use OpenJDK from zulu.org or Oracle JDK.")
} else