Fixed crash when subscribing with depth image

This commit is contained in:
matlabbe
2022-11-26 17:02:27 -08:00
parent 5d32e293b2
commit ccd7b62721
+1 -1
View File
@@ -1856,7 +1856,7 @@ bool convertRGBDMsgs(
}
}
if(isDepth)
if(isDepth && !depthMsgs.empty())
{
UASSERT_MSG(
imageWidth/depthWidth == imageHeight/depthHeight,