diff --git a/glass/src/libnt/native/cpp/NetworkTables.cpp b/glass/src/libnt/native/cpp/NetworkTables.cpp index 57469a20bdc..71ff8439ab3 100644 --- a/glass/src/libnt/native/cpp/NetworkTables.cpp +++ b/glass/src/libnt/native/cpp/NetworkTables.cpp @@ -879,7 +879,10 @@ void NetworkTablesModel::Update() { } else if (desc->IsValid()) { // loop over all entries with this type and update for (auto&& entryPair : m_entries) { - auto ts = entryPair.second->info.type_str; + if (!entryPair.second) { + continue; + } + std::string_view ts = entryPair.second->info.type_str; if (!wpi::starts_with(ts, "struct:")) { continue; } @@ -901,7 +904,10 @@ void NetworkTablesModel::Update() { } else { // loop over all protobuf entries and update (conservatively) for (auto&& entryPair : m_entries) { - auto& ts = entryPair.second->info.type_str; + if (!entryPair.second) { + continue; + } + std::string_view ts = entryPair.second->info.type_str; if (wpi::starts_with(ts, "proto:")) { entryPair.second->UpdateFromValue(*this); }