Bug 44411 NPE in JavaSearchResultCollector [search]
Build 20030930 JavaSearchResultCollector.fView is null: Thread [ModalContext] (Suspended (exception NullPointerException)) JavaSearchResultCollector.accept(IResource, int, int, IJavaElement, int) line: 130 MatchLocator.report(IResource, int, int, IJavaElement, int) line: 923 MatchLocator.report(int, int, IJavaElement, int) line: 916 MatchLocator.reportAccurateReference(int, int, char[][], IJavaElement, int) line: 984 TypeReferenceLocator.matchReportReference(ArrayTypeReference, IJavaElement, int, MatchLocator) line: 162 TypeReferenceLocator.matchReportReference(AstNode, IJavaElement, int, MatchLocator) line: 176 MatchLocator.reportMatching(AbstractMethodDeclaration, IJavaElement, int, boolean, MatchingNodeSet) line: 1155 MatchLocator.reportMatching(TypeDeclaration, IJavaElement, int, MatchingNodeSet) line: 1330 MatchLocator.reportMatching(CompilationUnitDeclaration, boolean) line: 1216 MatchLocator.process(PossibleMatch, boolean) line: 857 MatchLocator.locateMatches(JavaProject, PossibleMatch[], int, int) line: 590 MatchLocator.locateMatches(JavaProject, PossibleMatchSet) line: 627 MatchLocator.locateMatches(String[], IWorkspace, ICompilationUnit[]) line: 714 SearchEngine.search(IWorkspace, ISearchPattern, IJavaSearchScope, IJavaSearchResultCollector) line: 568 SearchEngine.search(IWorkspace, IJavaElement, int, IJavaSearchScope, IJavaSearchResultCollector) line: 495 JavaSearchOperation.execute(IProgressMonitor) line: 96 WorkspaceModifyOperation$1.run(IProgressMonitor) line: 71 Workspace.run(IWorkspaceRunnable, ISchedulingRule, IProgressMonitor) line: 1555 Workspace.run(IWorkspaceRunnable, IProgressMonitor) line: 1572 JavaSearchOperation(WorkspaceModifyOperation).run(IProgressMonitor) line: 85 ModalContext$ModalContextThread.run() line: 101
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/search/JavaSearchResultCollector.java
if (groupKey == null)
				groupKey= "?:null"; 
			else
				groupKey= "?:" + enclosingElement.getHandleIdentifier(); 
		}			
		ICompilationUnit cu= SearchUtil.findCompilationUnit(enclosingElement);
		if (cu != null && cu.isWorkingCopy())
			attributes.put(IJavaSearchUIConstants.ATT_IS_WORKING_COPY, new Boolean(true)); 
			
		JavaCore.addJavaElementMarkerAttributes(attributes, enclosingElement);
		attributes.put(IJavaSearchUIConstants.ATT_JE_HANDLE_ID, enclosingElement.getHandleIdentifier());
		attributes.put(IMarker.CHAR_START, new Integer(Math.max(start, 0)));
		attributes.put(IMarker.CHAR_END, new Integer(Math.max(end, 0)));
		if (enclosingElement instanceof IMember && ((IMember)enclosingElement).isBinary())
			attributes.put(IWorkbenchPage.EDITOR_ID_ATTR, JavaUI.ID_CF_EDITOR);
		else
			attributes.put(IWorkbenchPage.EDITOR_ID_ATTR, JavaUI.ID_CU_EDITOR);
		marker.setAttributes(attributes);
		fView.addMatch(enclosingElement.getElementName(), groupKey, resource, marker);
		fMatchCount++;
		if (!getProgressMonitor().isCanceled() && System.currentTimeMillis() - fLastUpdateTime > 1000) {
			getProgressMonitor().subTask(getFormattedMatchesString(fMatchCount));
			fLastUpdateTime= System.currentTimeMillis();
		}
	}
	
	/**
	 * @see IJavaSearchResultCollector#done().
	 */
	public void done() {