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 &&
pathLen >= 0 &&
(pathBytes == null ||
!_isPathLenValidForCurrentMode(pathLen, pathBytes))) {
!_isPathLenValidForCurrentMode(
pathLen,
pathBytes ?? Uint8List(0),
)) {
appLogger.warn(
'setPathOverride: invalid path for ${contact.name}: '
'pathLen=$pathLen, bytesLen=${pathBytes?.length ?? 0}, '