Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347700

Summary: NPE in EGit history view (not fixed it seems)
Product: [Technology] EGit Reporter: John <M8R-sgiphk>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jamesblackburn+eclipse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=345354
Whiteboard:

Description John CLA 2011-05-30 16:39:30 EDT
Build Identifier: I20110529-2200

Eclipse SDK  Version: 4.1.0 Build id: I20110529-2200

see this bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=345354
I made this since that one is still closed

looks like it's not fixed there with:
  Eclipse EGit (Incubation)    1.0.0.201105291713   
org.eclipse.egit.feature.group    Eclipse EGit
&
    Eclipse JGit (Incubation)    1.0.0.201105281926   
org.eclipse.jgit.feature.group    Eclipse JGit


Internal Error
java.lang.NullPointerException
    at
org.eclipse.egit.ui.internal.history.GitHistoryPage.setWarningText(GitHistoryPage.java:1329)
    at
org.eclipse.egit.ui.internal.history.GitHistoryPage.setInput(GitHistoryPage.java:937)
    at
org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryPageFor(GenericHistoryView.java:738)
    at
org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryFor(GenericHistoryView.java:691)
    at
org.eclipse.team.internal.ui.history.GenericHistoryView.showHistoryFor(GenericHistoryView.java:925)
    at
org.eclipse.egit.ui.internal.actions.ShowHistoryActionHandler.execute(ShowHistoryActionHandler.java:34)
    at
org.eclipse.egit.ui.internal.actions.RepositoryAction.run(RepositoryAction.java:86)
    at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
    at
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
    at
org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
    at
org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
    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:4163)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3752)
    at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:944)
    at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at
org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:860)
    at
org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:87)
    at org.eclipse.ui.internal.Workbench$3.run(Workbench.java:542)
    at
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:522)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
    at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
    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:344)
    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:622)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1386)


eclipse.buildId=I20110528-2200
java.version=1.6.0_25
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86_64

Reproducible: Always

Steps to Reproduce:
Use either Egit 0.12.1 or update to latest build via:
http://download.eclipse.org/egit/updates-nightly
OR
https://hudson.eclipse.org/hudson/job/egit/1396/artifact/org.eclipse.egit-updatesite/target/site/

1. start eclipse and close any History views if any opened
2. left click on project(or any of it's resources) that is opened and has git
3. right click on project(or any of its resources) and go
Team->Show In History
the error happened.

to workaround, click on project again, (in package explorer), now history
is filled and no NPE occurs
Comment 1 James Blackburn CLA 2011-06-27 13:32:53 EDT
Duplicate

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