Bug 6800 - NPE in Import Wizard
Summary: NPE in Import Wizard
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Kevin Haaland CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-11 11:45 EST by Joe Szurszewski CLA
Modified: 2001-12-13 13:51 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Szurszewski CLA 2001-12-11 11:45:22 EST
- Create a new Java project.  
- Select it and choose File-->Import...
- Select a directory on the file system containing desired .java files.
- Click Finish, you get error dialog and following walkback in log:

Log: Tue Dec 11 10:49:42 CST 2001
4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop.
java.lang.NullPointerException
	at 
org.eclipse.ui.internal.dialogs.ResourceTreeAndListGroup.findAllSelectedListElem
ents(ResourceTreeAndListGroup.java:319)
	at 
org.eclipse.ui.internal.dialogs.ResourceTreeAndListGroup.getAllCheckedListItems
(ResourceTreeAndListGroup.java:384)
	at 
org.eclipse.ui.internal.dialogs.ResourceTreeAndListGroup.getAllCheckedListItems
(ResourceTreeAndListGroup.java:403)
	at org.eclipse.ui.dialogs.WizardResourceImportPage.getSelectedResources
(WizardResourceImportPage.java:272)
	at 
org.eclipse.ui.wizards.datatransfer.WizardFileSystemResourceImportPage1.finish
(WizardFileSystemResourceImportPage1.java:337)
	at 
org.eclipse.ui.wizards.datatransfer.FileSystemImportWizard.performFinish
(FileSystemImportWizard.java:102)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed
(WizardDialog.java:570)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:311)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:211)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1368)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1170)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:536)
	at org.eclipse.jface.window.Window.open(Window.java:523)
	at org.eclipse.ui.internal.ImportResourcesAction.run
(ImportResourcesAction.java:62)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:452)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1368)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1170)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:781)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:764)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)
Log: Tue Dec 11 10:49:42 CST 2001
4 org.eclipse.core.runtime 0 java.lang.NullPointerException
java.lang.NullPointerException
	at 
org.eclipse.ui.internal.dialogs.ResourceTreeAndListGroup.findAllSelectedListElem
ents(ResourceTreeAndListGroup.java:319)
	at 
org.eclipse.ui.internal.dialogs.ResourceTreeAndListGroup.getAllCheckedListItems
(ResourceTreeAndListGroup.java:384)
	at 
org.eclipse.ui.internal.dialogs.ResourceTreeAndListGroup.getAllCheckedListItems
(ResourceTreeAndListGroup.java:403)
	at org.eclipse.ui.dialogs.WizardResourceImportPage.getSelectedResources
(WizardResourceImportPage.java:272)
	at 
org.eclipse.ui.wizards.datatransfer.WizardFileSystemResourceImportPage1.finish
(WizardFileSystemResourceImportPage1.java:337)
	at 
org.eclipse.ui.wizards.datatransfer.FileSystemImportWizard.performFinish
(FileSystemImportWizard.java:102)
	at org.eclipse.jface.wizard.WizardDialog.finishPressed
(WizardDialog.java:570)
	at org.eclipse.jface.wizard.WizardDialog.buttonPressed
(WizardDialog.java:311)
	at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:211)
	at org.eclipse.swt.widgets.TypedListener.handleEvent
(TypedListener.java:85)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1368)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1170)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:536)
	at org.eclipse.jface.window.Window.open(Window.java:523)
	at org.eclipse.ui.internal.ImportResourcesAction.run
(ImportResourcesAction.java:62)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:452)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:635)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1368)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1170)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:781)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:764)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.Main.main(Main.java:362)
Comment 1 Joe Szurszewski CLA 2001-12-11 11:46:26 EST
Problem is reproduceable running 20011206 with latest plugins as of 12/11.
Comment 2 Tod Creasey CLA 2001-12-13 13:51:35 EST
This problem is fixed in build 1211.