Fixed an exception on shutdown if the nodes failed to start up before the notary value is assigned.

This commit is contained in:
Clinton Alexander 2017-08-24 15:58:01 +01:00
parent 8756f337db
commit f7d06e8218

View File

@ -67,9 +67,11 @@ public class StandaloneCordaRPCJavaClientTest {
try { try {
connection.close(); connection.close();
} finally { } finally {
if(notary != null) {
notary.close(); notary.close();
} }
} }
}
private void copyFinanceCordapp() { private void copyFinanceCordapp() {
Path pluginsDir = (factory.baseDirectory(notaryConfig).resolve("plugins")); Path pluginsDir = (factory.baseDirectory(notaryConfig).resolve("plugins"));