commit | 34320067d5e0f35fa3bfa7cead7fb0ece52f7955 | [log] [tgz] |
---|---|---|
author | Galia Peycheva <galinap@google.com> | Fri Dec 10 11:37:32 2021 +0100 |
committer | Galia Peycheva <galinap@google.com> | Fri Dec 10 11:56:15 2021 +0100 |
tree | 0ea717af2298fd118e99bf85c565881ffe8e51ac | |
parent | 0f8f6a0d8914a90074eb35633c082a0e57e064fc [diff] |
Fix NullPointerException in DreamManagerService mCurrentDreamName has one access from an unlocked context, which causes a race condition between the dream being stopped and started. This causes a NullPointerExcpetion. This CL fixes this by moving the mCurrentDreamName read operation back into a locked block. Bug: 209911670 Test: m Change-Id: Icb8e904f067199fbfa62ff90aecd57bf38015546