Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333347 - Failed to update action org.eclipse.egit.ui.internal.actions.MergeTool
Summary: Failed to update action org.eclipse.egit.ui.internal.actions.MergeTool
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 major (vote)
Target Milestone: 0.11-M1   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-30 12:44 EST by Henry Tseng CLA
Modified: 2011-01-10 07:32 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Tseng CLA 2010-12-30 12:44:51 EST
Build Identifier: M20100909-0800

Closed project connected through git.  Reopening the project causes the following error:

Session Data:
eclipse.buildId=M20100909-0800
java.version=1.6.0_22
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.java.product -keyring /Users/henry/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -product org.eclipse.epp.package.java.product -keyring /Users/henry/.eclipse_keyring -showlocation

This is a continuation of log file /Canvas/www/htdocs/.metadata/.bak_0.log
Created Time: 2010-12-30 12:37:02.667



This is the error
Failed to update action org.eclipse.egit.ui.internal.actions.MergeTool

This is the stack trace:
java.lang.NullPointerException
at org.eclipse.egit.core.project.GitProjectData.map(GitProjectData.java:435)
at org.eclipse.egit.core.project.GitProjectData.remapAll(GitProjectData.java:420)
at org.eclipse.egit.core.project.GitProjectData.load(GitProjectData.java:413)
at org.eclipse.egit.core.project.GitProjectData.get(GitProjectData.java:168)
at org.eclipse.egit.core.GitProvider.getData(GitProvider.java:78)
at org.eclipse.egit.core.project.RepositoryMapping.getMapping(RepositoryMapping.java:211)
at org.eclipse.egit.ui.internal.actions.RepositoryActionHandler.getRepositoriesFor(RepositoryActionHandler.java:109)
at org.eclipse.egit.ui.internal.actions.MergeToolActionHandler.isEnabled(MergeToolActionHandler.java:50)
at org.eclipse.egit.ui.internal.actions.RepositoryAction.isEnabled(RepositoryAction.java:118)
at org.eclipse.egit.ui.internal.actions.RepositoryAction.selectionChanged(RepositoryAction.java:95)
at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:206)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:277)
at org.eclipse.ui.internal.ObjectActionContributor$1.run(ObjectActionContributor.java:157)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.ObjectActionContributor.contributeObjectActions(ObjectActionContributor.java:160)
at org.eclipse.ui.internal.ObjectActionContributorManager.contributeObjectActions(ObjectActionContributorManager.java:97)
at org.eclipse.ui.internal.PopupMenuExtender.addObjectActions(PopupMenuExtender.java:262)
at org.eclipse.ui.internal.PopupMenuExtender.menuAboutToShow(PopupMenuExtender.java:339)
at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:338)
at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:469)
at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:465)
at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:491)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:241)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1371)
at org.eclipse.swt.widgets.Menu.menuWillOpen(Menu.java:689)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:5030)
at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
at org.eclipse.swt.internal.cocoa.NSMenu.popUpContextMenu(NSMenu.java:68)
at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:235)
at org.eclipse.swt.widgets.Display.runPopups(Display.java:3699)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3270)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
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. Closed project connected through git.  
2. Reopen project
3. Repeatedly calls up error dialog
Comment 1 Mathias Kinzler CLA 2011-01-10 05:17:31 EST
Fix proposed at http://egit.eclipse.org/r/#change,2226
Comment 2 Jens Baumgart CLA 2011-01-10 07:32:10 EST
Fixed with commit 6ddf2753234ccfdad7f87365528730e442745f31