diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-08-11 15:18:29 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-08-11 15:18:29 -0700 |
commit | 012bb4d4e59e50f39fd199db89b4a4be93c7ad50 (patch) | |
tree | 9c834f296fdf8bb941e2f8da5b6dd53534276ebc /include | |
parent | 90a23aa50a94a82b64fc76d19db13db93411d635 (diff) | |
parent | 3d3c180d51af916cb67872630f7ff76e7fb99458 (diff) | |
download | frameworks_native-012bb4d4e59e50f39fd199db89b4a4be93c7ad50.zip frameworks_native-012bb4d4e59e50f39fd199db89b4a4be93c7ad50.tar.gz frameworks_native-012bb4d4e59e50f39fd199db89b4a4be93c7ad50.tar.bz2 |
Merge change 20673 into donut
* changes:
Fix bug 2043140. A race condition is encountered when an application invokes shutdown() on its TextToSpeech object while is has speak() requests still running. Since the TTS service destructor releases the synthesizer resources and sets the corresponding synth reference to null, an NPE was observed. The fix consists in catching NPEs whenever the sNativeSynth object is accessed, and return the matching error for the call. This change is a "low risk" version of the fix for bug 2025765i (same issue) which was reverted because it was higher risk than this CL: it affected the logic of each call to sNativeSynth. This CL only sets an error code when an NPE is fired because sNativeSynth is null.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions