handle null dependencies in Arch
This commit is contained in:
parent
3f76bb8bc5
commit
4e9fde7acd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user