diff options
author | Yi-Yo Chiang <yochiang@google.com> | 2021-07-02 21:26:00 +0800 |
---|---|---|
committer | Yi-Yo Chiang <yochiang@google.com> | 2021-07-13 16:30:34 +0800 |
commit | 0935b4849893da39163b9dce615fde516ec64e5d (patch) | |
tree | 2a837175a0f87c6196e7fdf91541f4813f977905 /java/java.go | |
parent | ff4d42d19a9da5735672ad2ff226c7d06b83986c (diff) |
cc/cc.go: Harden GetSnapshot() against nil pointer panic
* Retrieve SnapshotInfo only if the calling module is device-variant.
* Test for nil-ness before calling ctx.OtherModuleProvider().
Bug: 192647618
Test: Presubmit
Change-Id: Ida8582f756e1b15f8c14c816ed6e736b47995877
(cherry picked from commit ec14a4ded877358821e013bece5b52fcf96b1354)
Diffstat (limited to 'java/java.go')
0 files changed, 0 insertions, 0 deletions