Bug 11622 - npe in extract temp (array return type)
Summary: npe in extract temp (array return type)
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: 2.0 M5   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 12205 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-03-19 04:42 EST by Adam Kiezun CLA
Modified: 2002-03-28 04:02 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Kiezun CLA 2002-03-19 04:42:23 EST
class A {
	void f(){
		C b= new C();
		Object x= /*[*/b.lists()/*]*/;
	}
} 
class C{
	public List[] lists(){
		return null;
	}
}

Caused by: java.lang.NullPointerException
	at org.eclipse.jdt.internal.corext.dom.Bindings.asPackageQualifiedName
(Bindings.java:52)
	at 
org.eclipse.jdt.internal.corext.refactoring.code.ExtractTempRefactoring.addImpor
tIfNeeded(ExtractTempRefactoring.java:284)
	at 
org.eclipse.jdt.internal.corext.refactoring.code.ExtractTempRefactoring.createCh
ange(ExtractTempRefactoring.java:266)
	at org.eclipse.jdt.internal.ui.refactoring.CreateChangeOperation.run
(CreateChangeOperation.java:97)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:98)
Comment 1 Adam Kiezun CLA 2002-03-19 05:45:03 EST
added a test
Comment 2 Adam Kiezun CLA 2002-03-19 05:49:19 EST
fxd
Comment 3 Adam Kiezun CLA 2002-03-25 09:29:13 EST
*** Bug 12205 has been marked as a duplicate of this bug. ***
Comment 4 Andre Weinand CLA 2002-03-28 04:02:32 EST
Verified