From c15eba5ca9b02d9bd2cdb933efad7bde087f3510 Mon Sep 17 00:00:00 2001 From: Nav Date: Sun, 8 Dec 2024 23:33:14 +0000 Subject: [PATCH] Seg fault bug fix --- src/TargetController/TargetControllerComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TargetController/TargetControllerComponent.cpp b/src/TargetController/TargetControllerComponent.cpp index 60090866..fa8335d0 100644 --- a/src/TargetController/TargetControllerComponent.cpp +++ b/src/TargetController/TargetControllerComponent.cpp @@ -303,7 +303,7 @@ namespace TargetController // Reject any commands still waiting in the queue this->processQueuedCommands(); - if (this->target != nullptr) { + if (this->target != nullptr && this->targetState != nullptr) { // Cleanup before deactivating the target try { this->stopTarget();