Patch Set 2:

I get NullPointers when I synchronize:

java.lang.NullPointerException
	at org.eclipse.egit.core.synchronize.GitResourceVariantTree.getResourcePath(GitResourceVariantTree.java:242)
	at org.eclipse.egit.core.synchronize.GitResourceVariantTree.getTree(GitResourceVariantTree.java:260)
	at org.eclipse.egit.core.synchronize.GitResourceVariantTree.fetchMembersImpl(GitResourceVariantTree.java:173)
	at org.eclipse.egit.core.synchronize.GitResourceVariantTree.fetchMembers(GitResourceVariantTree.java:91)
	at org.eclipse.team.core.variants.AbstractResourceVariantTree.mergedMembers(AbstractResourceVariantTree.java:196)
	at org.eclipse.team.core.variants.AbstractResourceVariantTree.collectChanges(AbstractResourceVariantTree.java:173)
	at org.eclipse.team.core.variants.AbstractResourceVariantTree.collectChanges(AbstractResourceVariantTree.java:113)m.core.synchronize.ISyncInfoTreeChangeEvent, org.eclipse.core.runtime.IProgressMonitor) line: 734	
	org.eclipse.team.internal.ui.synchronize.CompressedFoldersModelProvider(org.eclipse.team.internal.ui.synchronize.SynchronizeModelProvider).handleChanges(org.eclipse.team.core.synchronize.ISyncInfoTreeChangeEvent, org.eclipse.core.runtime.IProgressMonitor) line: 192	
	org.eclipse.team.internal.ui.synchronize.SynchronizeModelUpdateHandler$3.run() line: 500	
	
(resource is an instance of GitProject)

and

Caused by: java.lang.NullPointerException
	at org.eclipse.egit.core.resource.GitContainer.getFolder(GitContainer.java:149)
	at org.eclipse.egit.core.resource.GitProject.getFolder(GitProject.java:101)
	at org.eclipse.egit.core.resource.GitContainer.getFolder(GitContainer.java:97)
	at org.eclipse.team.core.synchronize.SyncInfoTree.members(SyncInfoTree.java:357)