Bug 19234 NPE in NewMethodCompletionProposal.apply
Build 20020602 (F2) Sorry, no steps. I was writing code for a couple of hours, and I noticed this stack in my log afterwards. I was using the java browsing perspective to write code. Hopefully the stack trace contains enough information to be useful... Attaching complete log file, but here's the top of the stack: java.lang.NullPointerException at org.eclipse.jdt.internal.ui.text.correction.NewMethodCompletionProposal.apply(Ne wMethodCompletionProposal.java:253)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/correction/NewConstructorCompletionProposal.java
String content= generateStub(importEdit, settings);
		int insertPos= MemberEdit.ADD_AT_BEGINNING;
		IJavaElement anchor= fDestType;
	
		IMethod[] methods= fDestType.getMethods();
		for (int i = methods.length - 1; i >= 0; i--) {
			if (methods[i].isConstructor()) {
				anchor= methods[i];
				insertPos= MemberEdit.INSERT_AFTER;
				break;
			}
		}
		
		fMemberEdit= new MemberEdit(anchor, insertPos, new String[] { content }, settings.tabWidth);
		fMemberEdit.setUseFormatter(true);
		
		if (!importEdit.isEmpty()) {
			changeElement.addTextEdit("Add imports", importEdit); 
		}
		changeElement.addTextEdit("Add constructor", fMemberEdit); 
	}
	
	
	private String generateStub(ImportEdit importEdit, CodeGenerationSettings settings) throws CoreException {
		
		String constructorName= fDestType.getElementName();
				
		boolean isSameType= isLocalChange();
			
		String[] paramTypes= new String[fArguments.size()];