Bug 18255 - NPE during Organize imports.... See test5 in UI tests
Summary: NPE during Organize imports.... See test5 in UI tests
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 critical (vote)
Target Milestone: 2.0 F2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-29 18:53 EDT by Olivier Thomann CLA
Modified: 2002-06-03 13:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Thomann CLA 2002-05-29 18:53:04 EDT
Using 20020529, we got the following NPE running UI 
tests.
java.lang.NullPointerException
at 
org.eclipse.jdt.core.dom.DefaultBindingResolver.internalResolveNameForSimpleName(DefaultBindingResolver.java:803)
at 
org.eclipse.jdt.core.dom.DefaultBindingResolver.resolveName(DefaultBindingResolver.java:154)
at 
org.eclipse.jdt.core.dom.Name.resolveBinding(Name.java:75)
at 
org.eclipse.jdt.internal.corext.codemanipulation.OrganizeImportsOperation$TypeReferenceProcessor.process(OrganizeImportsOperation.java:380)
at 
org.eclipse.jdt.internal.corext.codemanipulation.OrganizeImportsOperation.run(OrganizeImportsOperation.java:536)
at 
org.eclipse.jdt.ui.tests.core.ImportOrganizeTest.test5(ImportOrganizeTest.java:238)
at 
java.lang.reflect.Method.invoke(Native Method)
at 
junit.framework.TestCase.runTest(TestCase.java:166)
at 
junit.framework.TestCase.runBare(TestCase.java:140)
at 
junit.framework.TestResult$1.protect(TestResult.java:106)
at 
junit.framework.TestResult.runProtected(TestResult.java:124)
at 
junit.framework.TestResult.run(TestResult.java:109)
at 
junit.framework.TestCase.run(TestCase.java:131)
at 
junit.framework.TestSuite.runTest(TestSuite.java:173)
at 
junit.framework.TestSuite.run(TestSuite.java:168)
at 
junit.framework.TestSuite.runTest(TestSuite.java:173)
at 
junit.framework.TestSuite.run(TestSuite.java:168)
at 
org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:307)
at 
org.eclipse.test.EclipseTestRunner.main(EclipseTestRunner.java:186)
at 
org.eclipse.test.UITestApplication.runTests(UITestApplication.java:41)
at 
org.eclipse.test.UITestApplication.runEventLoop(UITestApplication.java:35)
at 
org.eclipse.ui.internal.Workbench.run(Workbench.java:1078)
at 
org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:739)
at 
org.eclipse.core.boot.BootLoader.run(BootLoader.java:462)
at 
java.lang.reflect.Method.invoke(Native Method)
at 
org.eclipse.core.launcher.Main.basicRun(Main.java:200)
at 
org.eclipse.core.launcher.Main.run(Main.java:643)
at 
org.eclipse.core.launcher.Main.main(Main.java:476)
Comment 1 Olivier Thomann CLA 2002-05-29 19:09:02 EDT
Fixed and released in HEAD.
Comment 2 Olivier Thomann CLA 2002-05-29 19:10:40 EDT
Fixed
Comment 3 Jerome Lanneluc CLA 2002-06-03 10:03:27 EDT
No steps to reproduce.
Comment 4 Jerome Lanneluc CLA 2002-06-03 10:04:25 EDT
Actually reporter should verify it.
Comment 5 Olivier Thomann CLA 2002-06-03 13:42:32 EDT
Verified by the jdt.ui tests ran for F2.
Comment 6 Olivier Thomann CLA 2002-06-03 13:42:43 EDT
Verified.