diff --git a/veilid-core/src/veilid_api/debug.rs b/veilid-core/src/veilid_api/debug.rs index 0eabf47f..986a3c5d 100644 --- a/veilid-core/src/veilid_api/debug.rs +++ b/veilid-core/src/veilid_api/debug.rs @@ -32,6 +32,9 @@ fn get_string(text: &str) -> Option { fn get_route_id(rss: RouteSpecStore) -> impl Fn(&str) -> Option { return move |text: &str| { + if text.is_empty() { + return None; + } match DHTKey::try_decode(text).ok() { Some(key) => { let routes = rss.list_allocated_routes(|k, _| Some(*k));