handle null dependencies in Arch

This commit is contained in:
Thomas Rubini 2022-12-13 09:08:03 +01:00
parent 3f76bb8bc5
commit 4e9fde7acd
No known key found for this signature in database
GPG Key ID: C7D287C8C1CAC373

View File

@ -132,11 +132,15 @@ public class ArchDistribution implements Distribution {
futureDeps.add(getPackageTree(depPackageName, depth - 1));
}
for(CompletableFuture<Package> future : futureDeps){
Package dep;
try {
deps.add(future.get());
dep = future.get();
} catch (InterruptedException | ExecutionException e) {
throw new RuntimeException(e);
}
if(dep!=null){
deps.add(dep);
}
}
// TODO this doesn't seem clean