if (unit != null)
if (unit != null) { fCollector.reset(unit.getJavaProject());
	public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {		ICompilationUnit unit= fManager.getWorkingCopy(fEditor.getEditorInput());				fCollector.reset(unit.getJavaProject());		try {			if (unit != null)				unit.codeComplete(offset, fCollector);				} catch (JavaModelException x) {			ResourceBundle b= JavaPlugin.getDefault().getResourceBundle();			Shell shell= viewer.getTextWidget().getShell();			ErrorDialog.openError(shell, b.getString(ERROR_TITLE), b.getString(ERROR_MESSAGE), x.getStatus());		}				ICompletionProposal[] results= fCollector.getResults();		return results;	}