Don't call size() on a null List
authorChristopher Tate <ctate@google.com>
Tue, 9 Jun 2015 01:17:21 +0000 (18:17 -0700)
committerChristopher Tate <ctate@google.com>
Tue, 9 Jun 2015 01:17:21 +0000 (18:17 -0700)
commit810d83eac854f2da48f4ba7e7e6f68c39ce8f292
tree976847868e2db5c7e72b95ccafd7c2f5782f86a7
parent06e3ea49e8f9b2b60981e499a64ed6b150106173
Don't call size() on a null List

JobScheduler.getAllPendingJobs() can return null when there are none.
Deal with it.

Bug 21642868

Change-Id: I11fcc6e146f9db51e03dcf57f7518bb7878fbd28
src/com/android/providers/downloads/DownloadService.java