{"thread":{"id":"16287","subject":"EGIT branch checkout errors","startedAt":"2008-11-12T15:50:24Z","lastAt":"2008-11-12T22:48:31Z","messageCount":2,"participants":["Chris Dumoulin","Robin Rosenberg"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"95572","messageId":"491AFB40.4000800@oanda.com","threadId":"16287","inReplyTo":null,"subject":"EGIT branch checkout errors","fromName":"Chris Dumoulin","fromEmail":"dumoulin@oanda.com","sentAt":"2008-11-12T15:50:24Z","receivedAt":"2008-11-12T15:50:24Z","isPatch":false,"sender":{"key":"dumoulin@oanda.com","avatar":null},"body":"Using EGIT in Eclipse, I'm able to create a new branch, but not able to \ncheckout a branch. When I try Team->Branch...->Checkout, nothing \nhappens, so I launched Eclipse from a terminal to see any output it \nmight be giving. Here's what I got:\n\njava.lang.reflect.InvocationTargetException\n    at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:415)\n    at \norg.eclipse.jface.window.ApplicationWindow$1.run(ApplicationWindow.java:758)\n    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)\n    at \norg.eclipse.jface.window.ApplicationWindow.run(ApplicationWindow.java:755)\n    at \norg.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow.java:2487)\n    at \norg.spearce.egit.ui.internal.actions.BranchAction.run(BranchAction.java:53)\n    at \norg.eclipse.team.internal.ui.actions.TeamAction.runWithEvent(TeamAction.java:548)\n    at \norg.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:241)\n    at \norg.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)\n    at \norg.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)\n    at \norg.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)\n    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)\n    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1158)\n    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3401)\n    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3033)\n    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)\n    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)\n    at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)\n    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)\n    at \norg.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)\n    at \norg.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)\n    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)\n    at \norg.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)\n    at \norg.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)\n    at \norg.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)\n    at \norg.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)\n    at \norg.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)\n    at \norg.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)\n    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\n    at \nsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)\n    at \nsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\n    at java.lang.reflect.Method.invoke(Method.java:616)\n    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)\n    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)\n    at org.eclipse.equinox.launcher.Main.run(Main.java:1236)\n    at org.eclipse.equinox.launcher.Main.main(Main.java:1212)\nCaused by: java.lang.NullPointerException\n    at org.spearce.jgit.lib.GitIndex.addEntry(GitIndex.java:746)\n    at \norg.spearce.jgit.lib.WorkDirCheckout.checkoutTwoTrees(WorkDirCheckout.java:146)\n    at \norg.spearce.jgit.lib.WorkDirCheckout.checkout(WorkDirCheckout.java:137)\n    at \norg.spearce.egit.core.op.BranchOperation.checkoutTree(BranchOperation.java:133)\n    at org.spearce.egit.core.op.BranchOperation.run(BranchOperation.java:69)\n    at \norg.spearce.egit.ui.internal.actions.BranchAction$1.run(BranchAction.java:58)\n    at \norg.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)\n\nAny help would be appreciated.\nThanks,\nChris\n"},{"id":"95639","messageId":"200811122348.31423.robin.rosenberg.lists@dewire.com","threadId":"16287","inReplyTo":"491AFB40.4000800@oanda.com","subject":"Re: EGIT branch checkout errors","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2008-11-12T22:48:31Z","receivedAt":"2008-11-12T22:48:31Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"onsdag 12 november 2008 16:50:24 skrev Chris Dumoulin:\n> Using EGIT in Eclipse, I'm able to create a new branch, but not able to \n> checkout a branch. When I try Team->Branch...->Checkout, nothing \n> happens, so I launched Eclipse from a terminal to see any output it \n> might be giving. Here's what I got:\n\nSomething is wrong in the WorkDirCheckout class. Could you send these\nthings\n\ngit ls-tree -r HEAD\ngit-ls-tree -r branch-you-try-to-switch-to\ngit diff --name-only\n\nThen post it to http://code.google.com/p/egit/issues/list\n\n-- robin\n"}]}