From 71be7cf1aba5bf6a1ae332350199211df54b5acc Mon Sep 17 00:00:00 2001 From: John Smith Date: Sun, 18 Dec 2022 18:12:54 -0500 Subject: [PATCH] cli fix --- veilid-core/src/veilid_api/debug.rs | 3 +++ 1 file changed, 3 insertions(+) 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));