Community
Participate
Working Groups
Checking head contents, there are potential NPE: In org.eclipse.jdt.core.JavaCore: 1) public static IClasspathEntry newContainerEntry(IPath containerPath, boolean isExported) { if (containerPath == null || containerPath.segmentCount() < 1) { Assert.isTrue( false, "Illegal classpath container path: \'" + containerPath.makeRelative().toString() + "\', must have at least one segment (containerID+hints)"); //$NON-NLS-1$//$NON-NLS-2$ } It is possible to get to containerPath.makeRelative() with a null containerPath. 2) Same problem in: public static IClasspathEntry newVariableEntry( IPath variablePath, IPath variableSourceAttachmentPath, IPath variableSourceAttachmentRootPath, boolean isExported) { if (variablePath == null || variablePath.segmentCount() < 1) { Assert.isTrue( false, "Illegal classpath variable path: \'" + variablePath.makeRelative().toString() + "\', must have at least one segment"); //$NON-NLS-1$//$NON-NLS-2$ } 3) AnnotationFieldReference line 87 s.binding = new ProblemFieldBinding((ReferenceBinding) this.receiverType, token, fieldBinding.problemId()); fieldBinding can be null.
Fixed
Verified.