Return false when mappedDevice is falsy (#2383)

This commit is contained in:
Hans-Wilhelm Warlo
2019-11-22 07:48:11 +01:00
committed by Koen Kanters
parent c5bd3a2450
commit 2df1acf532
+1 -1
View File
@@ -97,7 +97,7 @@ class DeviceReport extends BaseExtension {
}
shouldSetupReporting(mappedDevice, device, messageType) {
if (!device) return false;
if (!device || !mappedDevice) return false;
// Handle messages of type endDeviceAnnce and devIncoming.
// This message is typically send when a device comes online after being powered off