Community
Participate
Working Groups
java.lang.NullPointerException at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.initialize(ParameterizedTypeBinding.java:702) at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.<init>(ParameterizedTypeBinding.java:43) at org.aspectj.org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createParameterizedType(LookupEnvironment.java:769) at org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.makeTypeBinding1(EclipseFactory.java:676) at org.aspectj.ajdt.internal.compiler.lookup.EclipseFactory.makeTypeBinding(EclipseFactory.java:591) this occurs on an incremental build when the project has other problems - namely there is a parameterized type and one of the type arguments is of a type that does not exist.
Changed EclipseFactory to return a 'ProblemReferenceBinding' with reason NOTFOUND if a type lookup fails. This avoids the NPE.