mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
NetworkTable.containsKey(): Always return false on empty key.
This commit is contained in:
@@ -286,7 +286,7 @@ std::shared_ptr<NetworkTable> NetworkTable::GetSubTable(StringRef key) const {
|
||||
}
|
||||
|
||||
bool NetworkTable::ContainsKey(StringRef key) const {
|
||||
return GetEntry(key).Exists();
|
||||
return !key.empty() && GetEntry(key).Exists();
|
||||
}
|
||||
|
||||
bool NetworkTable::ContainsSubTable(StringRef key) const {
|
||||
|
||||
Reference in New Issue
Block a user