git/list[1] front-page[2] threads[3] people[4] search[5] about
 

egit/jgit: Upate Index (refresh) causes NullPointerException for "external" projects

From
HHeX <hex.imexil@googlemail.com>
Date
Apr 15, 2009, 08:40 UTC
Message-ID
<49E59D77.2040303@gmail.com>
Hi,

I think I found a bug in egit/jgit and can pin it down to "external" projects, i.e., projects which reside in different directories than the default workspace location.

Steps to reproduce:
 1. In Eclipse create a new project "foo" in an external location
(outside the default workspace location), say ~/bar/
 2. execute "git init" in that dir
 3. share project with git
 4. do a "Update Index (refresh)" operation and you'll get something
similar to
>Counted 168 items to update in 0.0s
java.lang.NullPointerException
	at org.spearce.egit.core.internal.UpdateJob.run(UpdateJob.java:91)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

All other git operations will also fail. However it will work if you create project which is created in the default workspace and which content is simply symlinked.

/HeX
Message 1 of 1 in “egit/jgit: Upate Index (refresh) causes NullPointerException for "external" projects”
  1. HeXApr 15, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.