Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 60637 - NPE closing properties view
Summary: NPE closing properties view
Status: RESOLVED DUPLICATE of bug 56816
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-30 16:17 EDT by John Arthorne CLA
Modified: 2004-05-03 10:03 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 John Arthorne CLA 2004-04-30 16:17:45 EDT
I20040427

1) I had a plugin manifest editor open
2) Opened the properties view to show properties on a view extension
3) Made changes in the property sheet
4) Gave focus back to editor, did Ctrl+S to save
5) Clicked on the close button on the tab of the property sheet (without first
making it the active view.

NPE:

!ENTRY org.eclipse.core.runtime 4 2 Apr 30, 2004 16:05:02.777
!MESSAGE Problems occurred when invoking code from plug-in:
"org.eclipse.core.runtime".
!STACK 0
java.lang.NullPointerException
	at
org.eclipse.ui.internal.presentations.BasicStackPresentation.initTab(BasicStackPresentation.java:564)
	at
org.eclipse.ui.internal.presentations.BasicStackPresentation.childPropertyChanged(BasicStackPresentation.java:370)
	at
org.eclipse.ui.internal.presentations.BasicStackPresentation$6.propertyChanged(BasicStackPresentation.java:151)
	at
org.eclipse.ui.internal.PresentableViewPart.firePropertyChange(PresentableViewPart.java:58)
	at org.eclipse.ui.internal.ViewPane.toolBarResized(ViewPane.java:239)
	at org.eclipse.ui.internal.ViewPane.access$0(ViewPane.java:230)
	at org.eclipse.ui.internal.ViewPane$PaneToolBarManager.relayout(ViewPane.java:90)
	at org.eclipse.jface.action.ToolBarManager.update(ToolBarManager.java:289)
	at org.eclipse.ui.internal.ViewPane.updateActionBars(ViewPane.java:557)
	at org.eclipse.ui.internal.ViewActionBars.updateActionBars(ViewActionBars.java:55)
	at org.eclipse.ui.part.PageBookView.showPageRec(PageBookView.java:719)
	at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:569)
	at
org.eclipse.ui.views.properties.PropertySheet.partActivated(PropertySheet.java:162)
	at org.eclipse.ui.internal.PartListenerList$1.run(PartListenerList.java:49)
	at
org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:599)
	at org.eclipse.core.runtime.Platform.run(Platform.java:543)
	at
org.eclipse.ui.internal.PartListenerList.firePartActivated(PartListenerList.java:47)
	at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:1296)
	at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:2595)
	at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:2290)
	at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:246)
	at org.eclipse.ui.internal.PartPane.setFocus(PartPane.java:267)
	at
org.eclipse.ui.internal.PartTabFolder.presentationSelectionChanged(PartTabFolder.java:557)
	at org.eclipse.ui.internal.PartTabFolder.access$2(PartTabFolder.java:547)
	at org.eclipse.ui.internal.PartTabFolder$1.selectPart(PartTabFolder.java:115)
	at
org.eclipse.ui.internal.presentations.BasicStackPresentation$4.handleEvent(BasicStackPresentation.java:136)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:820)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:805)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:613)
	at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2890)
	at org.eclipse.swt.custom.CTabFolder.destroyItem(CTabFolder.java:627)
	at org.eclipse.swt.custom.CTabItem.dispose(CTabItem.java:135)
	at
org.eclipse.ui.internal.presentations.BasicStackPresentation.removePart(BasicStackPresentation.java:610)
	at org.eclipse.ui.internal.PartTabFolder.remove(PartTabFolder.java:574)
	at org.eclipse.ui.internal.PartTabFolder.replace(PartTabFolder.java:623)
	at
org.eclipse.ui.internal.PerspectivePresentation.removePart(PerspectivePresentation.java:1038)
	at org.eclipse.ui.internal.Perspective.hideView(Perspective.java:463)
	at org.eclipse.ui.internal.WorkbenchPage.hideView(WorkbenchPage.java:1768)
	at org.eclipse.ui.internal.WorkbenchPage.hideView(WorkbenchPage.java:1763)
	at org.eclipse.ui.internal.WorkbenchPage.hideView(WorkbenchPage.java:1718)
	at org.eclipse.ui.internal.ViewPane.doHide(ViewPane.java:300)
	at org.eclipse.ui.internal.PartTabFolder.close(PartTabFolder.java:241)
	at org.eclipse.ui.internal.PartTabFolder$1.close(PartTabFolder.java:76)
	at
org.eclipse.ui.internal.presentations.BasicStackPresentation$1.closeButtonPressed(BasicStackPresentation.java:86)
	at
org.eclipse.ui.internal.presentations.PaneFolder.notifyCloseListeners(PaneFolder.java:396)
	at org.eclipse.ui.internal.presentations.PaneFolder$1.close(PaneFolder.java:121)
	at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1994)
	at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:291)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2592)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2270)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1353)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1324)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:240)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:140)
	at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:90)
	at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:283)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:240)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:117)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:269)
	at org.eclipse.core.launcher.Main.run(Main.java:700)
	at org.eclipse.core.launcher.Main.main(Main.java:684)
Comment 1 John Arthorne CLA 2004-04-30 16:18:38 EDT
It seems to be easily reproducible with those steps (at least in my workspace)
Comment 2 Debbie Wilson CLA 2004-05-03 10:03:37 EDT

*** This bug has been marked as a duplicate of 56816 ***