mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
SimDeviceData: Add missing null check
This commit is contained in:
@@ -37,6 +37,7 @@ SimDeviceData::Value* SimDeviceData::LookupValue(HAL_SimValueHandle handle) {
|
||||
|
||||
// look up device
|
||||
Device* deviceImpl = LookupDevice(handle >> 16);
|
||||
if (!deviceImpl) return nullptr;
|
||||
|
||||
// look up value
|
||||
handle &= 0xffff;
|
||||
|
||||
Reference in New Issue
Block a user