Null check of ApplicationInfo.sourceDir

Fixes #1604.

Also changed back test forkEvery settings to last known working value. Slower, but works.
This commit is contained in:
TranceLove
2020-12-04 08:14:16 +08:00
parent 69f83b3209
commit fc2c3ee115
2 changed files with 5 additions and 3 deletions
@@ -75,6 +75,9 @@ public class AppListLoader extends AsyncTaskLoader<AppListLoader.AppsDataPair> {
mApps = new AppsDataPair(new ArrayList<>(apps.size()), new ArrayList<>(apps.size()));
for (ApplicationInfo object : apps) {
if (object.sourceDir == null) {
continue;
}
File sourceDir = new File(object.sourceDir);
String label = object.loadLabel(packageManager).toString();
+2 -3
View File
@@ -32,10 +32,9 @@ allprojects {
mavenCentral()
}
tasks.withType(Test) {
maxParallelForks = 4
maxParallelForks = 2
maxHeapSize = "4g"
forkEvery = 4
}
forkEvery = 2 }
}
spotless {