[wpilib] Revert throw on nonexistent SimDevice name in SimDeviceSim (#5053)

This breaks current vendor use of SimDeviceSim.

This reverts commit d991f6e435 (#5041).
This commit is contained in:
Peter Johnson
2023-02-05 11:27:55 -08:00
committed by GitHub
parent b879a6f8c6
commit 8230fc631d
2 changed files with 1 additions and 21 deletions

View File

@@ -25,9 +25,6 @@ public class SimDeviceSim {
*/
public SimDeviceSim(String name) {
this(SimDeviceDataJNI.getSimDeviceHandle(name));
if (m_handle == 0) {
throw new IllegalArgumentException("No sim device exists with name '" + name + "'.");
}
}
/**