summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorClara Bayarri <clarabayarri@google.com>2018-01-18 12:36:00 +0000
committerClara Bayarri <clarabayarri@google.com>2018-01-18 12:36:00 +0000
commitb102cc24354fb2e44964b60a794746df86be1eb7 (patch)
tree56f4a8cfdc0778c73664dae6858f85ec333b53a5 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent7d0e1f8065cc618ed8931f070777cda366e65fd0 (diff)
Fix crash in EditText#getText
The fact that View's constructor may call other methods before the TextView constructor has a chance to initialize values means that getText() may return null in the rare case where it is called before the constructor. Protect getText() from running into errors when the text is null, as it just means the value is not ready yet. Bug: 71638589 Test: CTS in topic Change-Id: Ie11233416385353f78e3ee27fb0d3ec9b671512f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions