Bug 412809 - Add support for the include task
Change-Id: Icd213dc00ea0bc77cb0c3f73b7b1c35f0411504c
Signed-off-by: Sarika Sinha <sarika.sinha@in.ibm.com>
diff --git a/ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/editor/utils/ProjectHelper.java b/ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/editor/utils/ProjectHelper.java
index fa97501..05fc02a 100644
--- a/ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/editor/utils/ProjectHelper.java
+++ b/ant/org.eclipse.ant.ui/Ant Editor/org/eclipse/ant/internal/ui/editor/utils/ProjectHelper.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2013 IBM Corporation and others.
+ * Copyright (c) 2000, 2019 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@@ -340,8 +340,10 @@
/*
* Currently only this "property-holder" is used. Extend if necessary.
*/
- parsedProjectNames.clear();
- parsedProjectNames = null;
+ if (parsedProjectNames != null) {
+ parsedProjectNames.clear();
+ parsedProjectNames = null;
+ }
}
public static class ProjectHandler extends ProjectHelper2.ProjectHandler {