Fix direct path override validation

This commit is contained in:
PacoX
2026-06-05 08:34:57 +02:00
parent a15f5e94da
commit c46a5ffa2f
+4 -2
View File
@@ -3091,8 +3091,10 @@ class MeshCoreConnector extends ChangeNotifier {
if (pathLen != null && if (pathLen != null &&
pathLen >= 0 && pathLen >= 0 &&
(pathBytes == null || !_isPathLenValidForCurrentMode(
!_isPathLenValidForCurrentMode(pathLen, pathBytes))) { pathLen,
pathBytes ?? Uint8List(0),
)) {
appLogger.warn( appLogger.warn(
'setPathOverride: invalid path for ${contact.name}: ' 'setPathOverride: invalid path for ${contact.name}: '
'pathLen=$pathLen, bytesLen=${pathBytes?.length ?? 0}, ' 'pathLen=$pathLen, bytesLen=${pathBytes?.length ?? 0}, '