replaced a lot of deprecated code; if someone runs into a commit conflict afterwards...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / core / SearchableEnvironment.java
index a7795eb..87fe51a 100644 (file)
@@ -73,6 +73,7 @@ public class SearchableEnvironment implements ISearchableNameEnvironment, IJavaS
     if (packageName == null)
       packageName = IPackageFragment.DEFAULT_PACKAGE_NAME;
    
+    if (this.nameLookup!=null) { // ins axelcl
     IType type = this.nameLookup.findType(typeName, packageName, false, NameLookup.ACCEPT_CLASSES | NameLookup.ACCEPT_INTERFACES);
     if (type != null) {
       //                       if (type instanceof BinaryType) {
@@ -107,6 +108,7 @@ public class SearchableEnvironment implements ISearchableNameEnvironment, IJavaS
       }
       //                       }
     }
+    }
     return null;
   }