summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorBernie Innocenti <codewiz@google.com>2018-06-14 17:55:58 +0900
committerBernie Innocenti <codewiz@google.com>2018-06-14 22:59:08 +0900
commitdee4e0bde42889589a88e578e3ab3e8d45026823 (patch)
tree50a79c52a1c208da5fb5e6237e254323b8258f34 /tools/aapt2/java/JavaClassGenerator.cpp
parent9f2362bb82a5ab72f6c81bf0b524cd2629dd81ec (diff)
Make dumpHexString() tolerate null arrays.
Rationale: hexdumps are mainly used when verbose logging is enabled, which means that callers are rarely exercised (let alone tested). Crashing on unchecked null pointers doesn't make debugging any easier, nor production code any more robust. Moreover, this is the behavior of system.out.println() and other logging APIs. Test: runtest -x core/tests/coretests/src/com/android/internal/util/HexDumpTest.java Bug: 110177912 Change-Id: Idccd81a5654ed0f7fee6b27177941bf8c311973e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions