mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 09:25:31 +02:00
fixed bug #214619.
This commit is contained in:
parent
46983859ca
commit
a774350786
1 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue