diff options
| author | 2025-01-15 17:31:07 +0800 | |
|---|---|---|
| committer | 2025-01-22 19:23:47 -0800 | |
| commit | 740483c26f5bdf6609cd1a09a9c7beb408a43fb3 (patch) | |
| tree | b06d0f677ef9566bfa3f66808213c1f36dcf5d35 /libs/androidfw/AttributeResolution.cpp | |
| parent | 3902e53dc4aa899815a76d04b63b6b54fc544d45 (diff) | |
Do not call setOption if mMhlController is null
[Root Cause]
The system crashes sometimes because we didn't check if mMhlController exists.
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.android.server.hdmi.HdmiMhlControllerStub.setOption(int, int)' on a null object reference
[Solution]
Check if mMhlController is null before calling setOption.
[Test Report]
AC off/on: PASS
Bug: 380905499
Flag: EXEMPT bugfix
Change-Id: Id21a35b8c9bb00e49a862ad2aca02ccbb3b0e9b9
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions