From 69c735b6890c19c48b8acc0c5abc81c256bf2e56 Mon Sep 17 00:00:00 2001 From: diekleinekuh Date: Tue, 21 Feb 2023 14:55:07 +0100 Subject: [PATCH] fix crash when stopping in debugger for too long --- connections/canconnection.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/connections/canconnection.cpp b/connections/canconnection.cpp index 084f889..6206045 100644 --- a/connections/canconnection.cpp +++ b/connections/canconnection.cpp @@ -175,7 +175,10 @@ bool CANConnection::sendFrame(const CANFrame& pFrame) CANFrame *txFrame; txFrame = getQueue().get(); - *txFrame = pFrame; + if (txFrame) + { + *txFrame = pFrame; + } getQueue().queue(); return piSendFrame(pFrame);