summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author wumin3 <wumin3@xiaomi.com> 2023-11-20 14:35:23 +0800
committer Marco Wu <wumin3@xiaomi.com> 2023-11-22 01:37:59 +0000
commitbe0757171d4f114b1a9357679412a1c0d9057686 (patch)
treec170c81a3177a2ec89341a8555f0dc63e20bea95 /libs/androidfw/StringPool.cpp
parente1925a86ec815c35caeed386ed5037ef6985c9e0 (diff)
SpatializerHelper: fix the null pointer exception occurred when create spatializer
// the NullPointerException log 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: AudioService 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke interface method 'byte android.media.ISpatializer.getActualHeadTrackingMode()' on a null object reference 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: at com.android.server.audio.SpatializerHelper.createSpat(SpatializerHelper.java:965) 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: at com.android.server.audio.SpatializerHelper.setSpatializerEnabledInt(SpatializerHelper.java:799) 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: at com.android.server.audio.SpatializerHelper.reset(SpatializerHelper.java:337) 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: at com.android.server.audio.AudioService.onAudioServerDied(AudioService.java:2134) 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: at com.android.server.audio.AudioService$AudioHandler.handleMessage(AudioService.java:10295) 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106) 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:224) 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: at android.os.Looper.loop(Looper.java:318) 11-15 07:34:17.191 1000 2107 4695 E AndroidRuntime: at com.android.server.audio.AudioService$AudioSystemThread.run(AudioService.java:10067) Change-Id: I0d43b6f4ace86a9db8bb1359dbaf5c28241b8cb4 Signed-off-by: wumin3 <wumin3@xiaomi.com>
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions