From b001045ab36b3cd060e1ab5ff73fa3b33108c27f Mon Sep 17 00:00:00 2001 From: Alex Archambault Date: Thu, 15 Jun 2023 10:30:36 +0200 Subject: [PATCH] ? --- .../src/main/scala/almond/integration/KernelLauncher.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/scala/integration/src/main/scala/almond/integration/KernelLauncher.scala b/modules/scala/integration/src/main/scala/almond/integration/KernelLauncher.scala index c57a9f6e5..cf1e1c973 100644 --- a/modules/scala/integration/src/main/scala/almond/integration/KernelLauncher.scala +++ b/modules/scala/integration/src/main/scala/almond/integration/KernelLauncher.scala @@ -586,7 +586,8 @@ class KernelLauncher( res } finally { - runner0.close() + if (runner0 != null) + runner0.close() output.close(success = success, printOutputOnError = printOutputOnError) } }