From e4c9c9e3dff26ceb3335c8bb5acae1c91756634b Mon Sep 17 00:00:00 2001 From: carlosuc3m <100329787@alumnos.uc3m.es> Date: Fri, 22 Nov 2024 13:15:55 +0100 Subject: [PATCH] correct small error --- src/main/java/ai/nets/samj/communication/model/SAM2Small.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/ai/nets/samj/communication/model/SAM2Small.java b/src/main/java/ai/nets/samj/communication/model/SAM2Small.java index 1cb82a5..a743224 100644 --- a/src/main/java/ai/nets/samj/communication/model/SAM2Small.java +++ b/src/main/java/ai/nets/samj/communication/model/SAM2Small.java @@ -240,7 +240,8 @@ public void notifyUiHasBeenClosed() { * {@inheritDoc} */ public void closeProcess() { - efficientSamJ.close(); + if (efficientSamJ != null) + efficientSamJ.close(); efficientSamJ = null; }