commit | d5e534bc04fdd8bca7aae9f507a228e8a4e8d28b | [log] [tgz] |
---|---|---|
author | Jim Kaye <jameskaye@google.com> | Fri Aug 09 15:09:01 2019 -0700 |
committer | Jim Kaye <jameskaye@google.com> | Fri Aug 09 15:16:49 2019 -0700 |
tree | 470fcd1ffb905333d105a5064e438c4985eca8bb | |
parent | 0760d6aa79e1e241afe9998cba92238eaf5c7306 [diff] |
[Garage Mode] Prevent NPE in Garage Mode Garage Mode determines how many idle jobs are running by asking the Job Scheduler for the list of running jobs. If there is a binder error, JobsSchedulerImpl.getAllJobSnapshots() returns null rather than an empty list. This CL treats null the same as an empty list. Fixes: 138672152 Test: On Hawk Change-Id: I68eca1a1cb3e2c11c12c22760786f63b45103fb5
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.