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

Bug 350440

Summary: NPE in GitHistoryPage
Product: [Technology] EGit Reporter: John Arthorne <john.arthorne>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: jamesblackburn+eclipse
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description John Arthorne CLA 2011-06-27 09:02:46 EDT
eGit 1.0 (Indigo)

I got the following NPE while trying to invoke Team -> Show in History on a file in a Git repository:

!ENTRY org.eclipse.ui.workbench 4 2 2011-06-27 08:58:39.297
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench".
!STACK 0
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.showHistory(GenericHistoryView.java:969)
	at org.eclipse.team.internal.ui.history.GenericHistoryView.editorActivated(GenericHistoryView.java:892)
	at org.eclipse.team.internal.ui.history.GenericHistoryView$1.partBroughtToTop(GenericHistoryView.java:367)
	at org.eclipse.ui.internal.WorkbenchPage$18.run(WorkbenchPage.java:3939)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.WorkbenchPage.firePartBroughtToTop(WorkbenchPage.java:3937)
	at org.eclipse.ui.internal.WorkbenchPage.access$15(WorkbenchPage.java:3930)
	at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partBroughtToTop(WorkbenchPage.java:172)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartBroughtToTop(PartServiceImpl.java:211)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.access$4(PartServiceImpl.java:209)
	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$1.handleEvent(PartServiceImpl.java:95)
	at org.eclipse.e4.ui.services.internal.events.UIEventHandler$1.run(UIEventHandler.java:41)
	at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:180)
Comment 1 James Blackburn CLA 2011-06-27 13:34:18 EDT
duplicate

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