summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorGopal Krishna Shukla <gshukla@codeaurora.org>2016-07-06 08:14:59 +0530
committerShibin George <shibing@codeaurora.org>2016-09-22 04:48:24 +0000
commitf7abcda5f22cde86666aeedbf1cc2a99b47ec2c2 (patch)
treeafc141aa8c08f2571c5bdb85da69fac35fe63d80 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent2309b98b254b1fe3b9e4bb86dab28082ec51e3f5 (diff)
Provide synchronization to setview to avoid NPE
If setView() will be called from two different threads then mView property of a View object may have inconsistent value. For instance, setView() may set mView to null causing NullPointerException. Synchronize root.setView() as well to avoid this. Change-Id: I5f9cf47ece5d4aca575bd8644ecfcee0ed43d843
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions