Merge branch '2.2.x'

Closes gh-20502
This commit is contained in:
Andy Wilkinson
2020-03-11 13:17:12 +00:00
4 changed files with 46 additions and 2 deletions

View File

@@ -140,7 +140,9 @@ public class DependencyCustomizer {
protected boolean canAdd() {
for (String path : paths) {
try {
return DependencyCustomizer.this.loader.getResource(path) != null;
if (DependencyCustomizer.this.loader.getResource(path) == null) {
return false;
}
}
catch (Exception ex) {
// swallow exception and continue