diff options
author | Ryan Mitchell <rtmitchell@google.com> | 2019-02-23 15:33:08 +0800 |
---|---|---|
committer | Ryan Mitchell <rtmitchell@google.com> | 2020-05-28 14:03:27 -0700 |
commit | d338dfe5830df0960b7b16b7191cb42bd2115996 (patch) | |
tree | 1ecce02639f04419ecdfd43a5c86f05bbaabbffb /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 57e977a5859ff24f5ff909046dccde5bce341f6d (diff) |
Avoid Asset::LoadImpl crash when getBuffer is null
If for some reason Asset::getBuffer returns a null pointer, error out
instead of dereferencing the null pointer.
Bug: 125943266
Bug: 154461471
Test: boots
Change-Id: I957be4f9b8c49c2a6829e8b82fae0ae8d8d7639e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions