You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by jt...@apache.org on 2020/09/24 07:08:48 UTC
[netbeans] branch master updated: Fix NullPointerException when
using a Collection
This is an automated email from the ASF dual-hosted git repository.
jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 5835a8e Fix NullPointerException when using a Collection
new 432dddb Merge pull request #2398 from pepness/fix-npe
5835a8e is described below
commit 5835a8e29f3420508de136ed27e7ad848dc88d11
Author: Jose Contreras <pe...@gmail.com>
AuthorDate: Wed Sep 23 18:14:15 2020 -0500
Fix NullPointerException when using a Collection
---
platform/o.n.bootstrap/src/org/netbeans/Util.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/platform/o.n.bootstrap/src/org/netbeans/Util.java b/platform/o.n.bootstrap/src/org/netbeans/Util.java
index 575149f..161556e 100644
--- a/platform/o.n.bootstrap/src/org/netbeans/Util.java
+++ b/platform/o.n.bootstrap/src/org/netbeans/Util.java
@@ -287,11 +287,11 @@ public final class Util {
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);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists