mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
Need to return nullptr, not false.
This commit is contained in:
@@ -566,7 +566,7 @@ JNIEXPORT jobject JNICALL Java_edu_wpi_first_wpilibj_networktables_NetworkTables
|
||||
auto val = nt::GetEntryValue(JavaStringRef(env, key));
|
||||
if (!val || !val->IsBoolean()) {
|
||||
ThrowTableKeyNotDefined(env, key);
|
||||
return false;
|
||||
return nullptr;
|
||||
}
|
||||
return ToJavaObject(env, *val);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user