Skip to content

Commit

Permalink
Fix NullPointerException when using a Collection
Browse files Browse the repository at this point in the history
  • Loading branch information
pepness committed Sep 23, 2020
1 parent f5291ef commit 5835a8e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions platform/o.n.bootstrap/src/org/netbeans/Util.java
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ else if (dep.getType() == Dependency.TYPE_MODULE) {
for (Dependency dep : f.getDependenciesArray()) {
if (dep.getType() == Dependency.TYPE_REQUIRES) {
Collection<Module> providers = providersOf.get(dep.getName());
if (providers.contains(m1)) {
providers = new ArrayList<>(providers);
providers.remove(m1);
}
if (providers != null) {
if (providers.contains(m1)) {
providers = new ArrayList<>(providers);
providers.remove(m1);
}
l = fillMapSlot(m, m1);
l.addAll(providers);
}
Expand Down

0 comments on commit 5835a8e

Please sign in to comment.