mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 09:39:39 +00:00
f22f21191bc9b9c6fe6e9e0e99b91b43d20c6010
This patch prevents a Null Pointer Exception in queryMoistureDetectionStatus() when getPortStatusHelper() fails to open the /sys/class/typec file. The failure results in an empty currentPortStatus vector, causing the NPE when accessing its first element. Bug: 361097811 Flag: EXEMPT bugfix Test: NPE does not occur when getPortStatusHelper() fails Change-Id: I61c9f7647aafca28b777e53f170764ddd02c060f Signed-off-by: Kuen-Han Tsai <khtsai@google.com>
…
…
…
…
…
Description
Board tree for Google Tensor G2 devices
Languages
C++
60.5%
Makefile
25.6%
PureBasic
9.1%
Shell
2.1%
C
1.5%
Other
1.2%