Skip to content
Commit ec14a4de authored by Yi-Yo Chiang's avatar Yi-Yo Chiang
Browse files

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
parent 36d8e4e2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment