Bug 520288 - [9] Java9 Patch: NullPointerException during: "Launching
Tomcat Server"
Change-Id: I120a18f1b94c8768515e8b9f39342311d243a27a
diff --git a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractJavaLaunchConfigurationDelegate.java b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractJavaLaunchConfigurationDelegate.java
index 11fcd0f..c8f1112 100644
--- a/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractJavaLaunchConfigurationDelegate.java
+++ b/org.eclipse.jdt.launching/launching/org/eclipse/jdt/launching/AbstractJavaLaunchConfigurationDelegate.java
@@ -419,7 +419,7 @@
if (entry.getClasspathProperty() == IRuntimeClasspathEntry.USER_CLASSES) {
String location = entry.getLocation();
if (location != null) {
- if (proj.getModuleDescription() != null) {
+ if (proj != null && proj.getModuleDescription() != null) {
if (isModuleEntry(proj, entry)) {
continue;
}
@@ -455,7 +455,7 @@
if (entry.getClasspathProperty() == IRuntimeClasspathEntry.USER_CLASSES) {
String location = entry.getLocation();
if (location != null) {
- if (proj.getModuleDescription() != null) {
+ if (proj != null && proj.getModuleDescription() != null) {
if (isModuleEntry(proj, entry)) {
modulepathSet.add(location);
} else {