summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorAntony Sargent <asargent@google.com>2017-05-17 15:46:51 -0700
committerAntony Sargent <asargent@google.com>2017-05-17 16:04:47 -0700
commitd573db5bfc96c3066103ac53987b5741f61da158 (patch)
tree2abacd8f69d5d8a9ace8711594092e9a3daf2b59 /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent95cf170ce94f51e9455304207ab20d4bd7109697 (diff)
Fix a race condition in the A2dpProfile constructor
When constructing A2dpProfile objects, we were creating an A2dpServiceListener before initializing the mWrapperFactory instance variable that it depended on. If the onServiceConnected callback happens immediately after the listener is created, we'd get a null pointer exception. The fix is to move initialization of mWrapperFactory up before the construction of the A2dpServiceListener. Bug: 38391718 Test: run boot tests Change-Id: Ib0be947099862b19da7737b54b99b944241b605f
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions