summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorChristopher Tate <ctate@google.com>2016-05-27 17:10:30 -0700
committerChristopher Tate <ctate@google.com>2016-05-27 17:13:10 -0700
commitf135b271bfaa5a23f3af5a15ce59fd4ffb44a6be (patch)
treeda56c0060c43be98c0fc3db0bf9acadb44cddb46 /tools/aapt2/java/JavaClassGenerator.cpp
parentefa291a8605e91d775faf46ada349ec7f81fcdb9 (diff)
Don't call .toString() on potentially null CharSequence
We're building an exception message string, but by explicitly invoking .toString() we're accidentally triggering an NPE rather than the typed exception we want to throw. Build the string in a way that will be safe and sensical even if the CharSequence is null. Bug 29009255 Change-Id: I1813260f0b36fd44506b8327f997dd20c2d6c8bf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions