Bug 26192 - NPE from ant targets tab
Summary: NPE from ant targets tab
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Ant (show other bugs)
Version: 2.1   Edit
Hardware: PC Linux-GTK
: P2 normal (vote)
Target Milestone: 2.1 M4   Edit
Assignee: Jared Burns CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2002-11-13 15:37 EST by Jared Burns CLA
Modified: 2002-11-25 21:30 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 Jared Burns CLA 2002-11-13 15:37:43 EST
I got the following NPE in my target on the latest code from 20021113. I
didn't notice the NPE written to my console immediately, but I believe it
happened when I was experimenting with changing the ant build file location
on the Main tab and then switching to the Targets tab to see if the targets
updated.

!SESSION Nov 13, 2002 11:57:05.282 ---------------------------------------------
java.version=1.3.1_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments: -dev bin,bin -data /home/jburns/tmp/eclipse -os linux -ws gtk -arch x86
!ENTRY org.eclipse.ui 4 4 Nov 13, 2002 11:57:05.283
!MESSAGE Unhandled exception caught in event loop.
!ENTRY org.eclipse.ui 4 0 Nov 13, 2002 11:57:05.302
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
	at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:431)
	at org.eclipse.jface.viewers.TableViewer.internalRefresh(TableViewer.java:410)
	at org.eclipse.jface.viewers.StructuredViewer$4.run(StructuredViewer.java:744)
	at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:684)
	at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:742)
	at org.eclipse.jface.viewers.StructuredViewer.refresh(StructuredViewer.java:704)
	at org.eclipse.jface.viewers.TableViewer.inputChanged(TableViewer.java:377)
	at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:232)
	at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:871)
	at org.eclipse.ui.externaltools.internal.ant.launchConfigurations.AntTargetsTab.initializeFrom(AntTargetsTab.java:421)
	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.handleTabSelected(LaunchConfigurationDialog.java:2171)
	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog$7.widgetSelected(LaunchConfigurationDialog.java:1099)
	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:87)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:839)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1464)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1284)
	at org.eclipse.jface.window.Window.runEventLoop(Window.java:561)
	at org.eclipse.jface.window.Window.open(Window.java:541)
	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.openDialogOnSelection(LaunchConfigurationDialog.java:707)
	at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationDialog.open(LaunchConfigurationDialog.java:643)
	at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:324)
	at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:69)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:769)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:408)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:362)
	at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:353)
	at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:48)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:77)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:839)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1464)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1284)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1419)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:1402)
	at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:831)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:432)
	at EclipseRuntimeLauncher.main(EclipseRuntimeLauncher.java:24)
Comment 1 Darin Swanson CLA 2002-11-17 21:58:13 EST
Fixed in AntTargetsTab and AntTargetContentProvider.
Please verify.
Comment 2 Jared Burns CLA 2002-11-25 21:30:03 EST
Verified.