1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00
This commit is contained in:
Warren Paul 2009-08-10 18:23:18 +00:00
parent 46983859ca
commit a774350786

View file

@ -346,10 +346,7 @@ public class NewClassWizardUtil {
*/
public static boolean isTypeReachable(ITypeInfo type, ICProject project, String[] includePaths) {
ICProject baseProject = type.getEnclosingProject();
if (baseProject == null)
return false;
if (baseProject.equals(project)) {
if (baseProject != null && baseProject.equals(project)) {
return true;
}
@ -359,7 +356,10 @@ public class NewClassWizardUtil {
boolean isTypeLocation= true;
if (location == null) {
isTypeLocation= false;
location = baseProject.getProject().getLocation();
if (baseProject != null) {
location = baseProject.getProject().getLocation();
}
if (location == null)
return false;
}