SimDeviceData: Add missing null check

This commit is contained in:
Peter Johnson
2019-10-13 22:25:59 -07:00
parent 5bce489b98
commit 46ad95512e

View File

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