mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[glass] Fix handling of "/" NetworkTables key (#2991)
This commit is contained in:
@@ -190,6 +190,11 @@ void NetworkTablesModel::Update() {
|
||||
parts.clear();
|
||||
wpi::StringRef{entry->name}.split(parts, '/', -1, false);
|
||||
|
||||
// ignore a raw "/" key
|
||||
if (parts.empty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// get to leaf
|
||||
auto nodes = &m_root;
|
||||
for (auto part : wpi::ArrayRef(parts.begin(), parts.end()).drop_back()) {
|
||||
|
||||
Reference in New Issue
Block a user