Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320280 - NPE when viewing local history
Summary: NPE when viewing local history
Status: CLOSED WONTFIX
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform Team Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-19 11:23 EDT by Michael Giroux CLA
Modified: 2019-07-19 15:40 EDT (History)
1 user (show)

See Also:


Attachments
Shift-Alt-F1 screenshot (51.46 KB, image/pjpeg)
2010-07-21 16:25 EDT, Michael Giroux CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Giroux CLA 2010-07-19 11:23:44 EDT
Build Identifier: eclipse.buildId=I20100608-0911

I'm implementing several new modules, and so far none have been committed to SVN. When I attempt to view local history for one of the files I get the following error:

eclipse.buildId=I20100608-0911
java.version=1.6.0_21
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product -data c:/EclipseWorkspace3.6/Trunk


Error
Mon Jul 19 08:14:51 GMT-07:00 2010
null argument:

org.eclipse.core.runtime.AssertionFailedException: null argument:
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:85)
at org.eclipse.core.runtime.Assert.isNotNull(Assert.java:73)
at org.eclipse.ui.part.WorkbenchPart.internalSetContentDescription(WorkbenchPart.java:443)
at org.eclipse.ui.part.WorkbenchPart.setContentDescription(WorkbenchPart.java:437)
at org.eclipse.ui.part.ViewPart.setContentDescription(ViewPart.java:154)
at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryPageFor(GenericHistoryView.java:740)
at org.eclipse.team.internal.ui.history.GenericHistoryView.showHistory(GenericHistoryView.java:969)
at org.eclipse.team.internal.ui.history.GenericHistoryView.access$3(GenericHistoryView.java:965)
at org.eclipse.team.internal.ui.history.GenericHistoryView$3.selectionChanged(GenericHistoryView.java:433)
at org.eclipse.ui.internal.AbstractSelectionService.firePostSelection(AbstractSelectionService.java:179)
at org.eclipse.ui.internal.AbstractSelectionService.setActivePart(AbstractSelectionService.java:289)
at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:60)
at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136)
at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3537)
at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3077)
at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:279)
at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:237)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1058)
at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1424)
at org.eclipse.swt.widgets.Control.sendFocusEvent(Control.java:2632)
at org.eclipse.swt.widgets.Widget.wmSetFocus(Widget.java:2402)
at org.eclipse.swt.widgets.Control.WM_SETFOCUS(Control.java:4792)
at org.eclipse.swt.widgets.Tree.WM_SETFOCUS(Tree.java:6907)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4229)
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5844)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.SetFocus(Native Method)
at org.eclipse.swt.widgets.Control.forceFocus(Control.java:995)
at org.eclipse.swt.widgets.Control.setSavedFocus(Control.java:3269)
at org.eclipse.swt.widgets.Decorations.restoreFocus(Decorations.java:821)
at org.eclipse.swt.widgets.Decorations.WM_ACTIVATE(Decorations.java:1639)
at org.eclipse.swt.widgets.Shell.WM_ACTIVATE(Shell.java:2114)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4157)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:341)
at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1598)
at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2038)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4873)
at org.eclipse.swt.internal.win32.OS.DestroyWindow(Native Method)
at org.eclipse.swt.widgets.Control.destroyWidget(Control.java:684)
at org.eclipse.swt.widgets.Shell.destroyWidget(Shell.java:697)
at org.eclipse.swt.widgets.Widget.release(Widget.java:818)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:446)
at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:447)
at org.eclipse.swt.widgets.Shell.dispose(Shell.java:714)
at org.eclipse.jface.window.Window.close(Window.java:335)
at org.eclipse.jface.dialogs.Dialog.close(Dialog.java:979)
at org.eclipse.jface.dialogs.TrayDialog.close(TrayDialog.java:179)
at org.eclipse.ui.internal.statushandlers.InternalDialog.close(InternalDialog.java:710)
at org.eclipse.jface.dialogs.Dialog.okPressed(Dialog.java:940)
at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
at org.eclipse.ui.internal.statushandlers.InternalDialog.buttonPressed(InternalDialog.java:190)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)




Reproducible: Always

Steps to Reproduce:
1. select a module in the package explorer
2. select team / show local history context menu
3. NPE occurs
Comment 1 Tomasz Zarna CLA 2010-07-21 05:56:50 EDT
Are these modules new resources (not yet committed, marked with "?") in a SVN shared project?
Comment 2 Michael Giroux CLA 2010-07-21 11:07:47 EDT
(In reply to comment #1)
> Are these modules new resources (not yet committed, marked with "?") in a SVN
> shared project?

Yes.
Comment 3 Michael Giroux CLA 2010-07-21 11:09:44 EDT
(In reply to comment #1)
> Are these modules new resources (not yet committed, marked with "?") in a SVN
> shared project?

BTW, the NPE does not occur on every one of these resources.  There are a few that display a message box indicating there is no local history.
Comment 4 Tomasz Zarna CLA 2010-07-21 11:39:42 EDT
When you switch to History view for one of the modules and press Shift+Alt+F1, what does Plug-in Spy you just opened say about active view class and contributing plug-in?
Comment 5 Michael Giroux CLA 2010-07-21 16:25:38 EDT
Created attachment 174914 [details]
Shift-Alt-F1 screenshot

A screenshot of the Shift-Alt-F1 from history view.
Comment 6 Tomasz Zarna CLA 2010-07-26 05:13:11 EDT
Is it possible that you will export the project, so I can reproduce the bug on my side? You don't have to include all the files, just make sure the one causing trouble is there.
Comment 7 Michael Giroux CLA 2010-07-26 16:16:05 EDT
(In reply to comment #6)
> Is it possible that you will export the project, so I can reproduce the bug on
> my side? You don't have to include all the files, just make sure the one
> causing trouble is there.

Sorry, I had to commit the code to SVN, and now, the problem no longer exists.  If I see it again I will be sure to save the project for you.

Michael
Comment 8 Eclipse Genie CLA 2019-07-19 15:40:57 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.