Skip to content

Commit bb5e8ce

Browse files
authored
DVCSMP-3664 Fix most common exceptions (SmartThingsCommunity#2911)
* DVCSMP-3664 Fix most common exceptions Code oversight in Z-Wave Controller. Essentially an NPE in aeon home energy meter.
1 parent 0ab803f commit bb5e8ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

devicetypes/smartthings/aeon-home-energy-meter-c3.src/aeon-home-energy-meter-c3.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def parse(String description) {
9797
}
9898
log.debug "Parse returned ${result?.descriptionText}"
9999

100-
storeGraphData(result.name, result.value)
100+
if (result?.name && result.value) storeGraphData(result.name, result.value)
101101

102102
return result
103103
}

devicetypes/smartthings/zwave-controller.src/zwave-controller.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def zwaveEvent(physicalgraph.zwave.commands.crc16encapv1.Crc16Encap cmd) {
7979
}
8080

8181
def zwaveEvent(physicalgraph.zwave.Command cmd) {
82-
createEvent(isStateChange: true, "$device.displayName: $cmd")
82+
createEvent(isStateChange: true, descriptionText: "$device.displayName: $cmd")
8383
}
8484

8585
def on() {

0 commit comments

Comments
 (0)