diff --git a/ntcore/src/main/native/cpp/Value.cpp b/ntcore/src/main/native/cpp/Value.cpp index 537f5ecc4e..09ba775b89 100644 --- a/ntcore/src/main/native/cpp/Value.cpp +++ b/ntcore/src/main/native/cpp/Value.cpp @@ -389,6 +389,9 @@ bool nt::operator==(const Value& lhs, const Value& rhs) { lhs.m_val.data.arr_double.size * sizeof(lhs.m_val.data.arr_double.arr[0])) == 0; case NT_STRING_ARRAY: + if (lhs.m_val.data.arr_string.size != rhs.m_val.data.arr_string.size) { + return false; + } if (lhs.m_val.data.arr_string.size == 0) { return true; }