device_status_collector: check if cros_healthd battery value is null
Some devices do not have batteries and will have a null BatteryInfoPtr to represent this. This value needs to be checked before being used when processing the CrosHealthdProbe. Bug: chromium:1159440 Change-Id: I427ba3a8fd9d6a3b26ef0e0e2a21b30d3bdd92a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2626097 Commit-Queue: Trent Begin <tbegin@chromium.org> Reviewed-by:Paul Moy <pmoy@chromium.org> Reviewed-by:
Maksim Ivanov <emaxx@chromium.org> Cr-Commit-Position: refs/heads/master@{#843149}
Showing
Please register or sign in to comment