NetworkTable.containsKey(): Always return false on empty key.

This commit is contained in:
Peter Johnson
2017-10-05 23:11:56 -07:00
parent 8a37b81f4e
commit a6c1e18aef
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {