From ccd7b6272117f81148030259c886b11b99fdc527 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Sat, 26 Nov 2022 17:02:27 -0800 Subject: [PATCH] Fixed crash when subscribing with depth image --- src/MsgConversion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MsgConversion.cpp b/src/MsgConversion.cpp index e90605bf..7b45201d 100644 --- a/src/MsgConversion.cpp +++ b/src/MsgConversion.cpp @@ -1856,7 +1856,7 @@ bool convertRGBDMsgs( } } - if(isDepth) + if(isDepth && !depthMsgs.empty()) { UASSERT_MSG( imageWidth/depthWidth == imageHeight/depthHeight,