Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Loskutov2019-04-13 05:31:26 -0400
committerAndrey Loskutov2019-04-15 01:35:34 -0400
commit8847b305a8c10305288e845a6201404a12e2fccc (patch)
tree2d911f4250f20963cd095e1b6e5fa31449aaee74
parent197de69dcb4d333fd486636329f19e697aee4541 (diff)
downloadeclipse.jdt.core-8847b305a8c10305288e845a6201404a12e2fccc.tar.gz
eclipse.jdt.core-8847b305a8c10305288e845a6201404a12e2fccc.tar.xz
eclipse.jdt.core-8847b305a8c10305288e845a6201404a12e2fccc.zip
Bug 546338 - NPE at ClasspathJrt.java:326I20190415-0300
Change-Id: I9c3baaed4984e5a10c44d212954fd6f9a4970d39 Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
-rw-r--r--org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/ClasspathJrt.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/ClasspathJrt.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/ClasspathJrt.java
index 846b3ade6d..b9f19e9cab 100644
--- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/ClasspathJrt.java
+++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/builder/ClasspathJrt.java
@@ -322,6 +322,9 @@ protected Collection<String> selectModules(Set<String> keySet, Collection<String
protected void addRequired(String mod, Set<String> allModules) {
IModule iMod = getModule(mod.toCharArray());
+ if(iMod == null) {
+ return;
+ }
for (IModuleReference requiredRef : iMod.requires()) {
IModule reqMod = getModule(requiredRef.name());
if (reqMod != null) {

Back to the top