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

Bug 359815

Summary: Egit 1.1: NPE while synchronize a project
Product: [Technology] EGit Reporter: Daniel Stein <daniel.stein>
Component: UIAssignee: Dariusz Luksza <dariusz.luksza>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: matthias.sohn
Version: unspecified   
Target Milestone: 1.2-M2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
screen showing the error with additional infos none

Description Daniel Stein CLA 2011-10-04 06:14:36 EDT
Build Identifier: M20110909-1335

Since Egit 1.1 I get the following trace, when I synchronize my project.

eclipse.buildId=M20110909-1335
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments:  -product org.eclipse.epp.package.rcp.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.rcp.product

This is a continuation of log file D:\home\projekte\.metadata\.bak_0.log
Created Time: 2011-10-04 11:36:08.625

Error
Tue Oct 04 11:37:51 CEST 2011
An internal error occurred processing subscriber events.

org.eclipse.team.core.TeamException: An internal error occurred processing subscriber events.
	at org.eclipse.team.internal.core.subscribers.SubscriberEventHandler.processEvent(SubscriberEventHandler.java:332)
	at org.eclipse.team.internal.core.BackgroundEventHandler.processEvents(BackgroundEventHandler.java:369)
	at org.eclipse.team.internal.core.BackgroundEventHandler$1.run(BackgroundEventHandler.java:203)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.lang.NullPointerException
	at org.eclipse.egit.core.synchronize.GitSyncObjectCache.get(GitSyncObjectCache.java:125)
	at org.eclipse.egit.core.synchronize.GitResourceVariantTree.fetchVariant(GitResourceVariantTree.java:100)
	at org.eclipse.egit.core.synchronize.GitResourceVariantTree.fetchVariant(GitResourceVariantTree.java:79)
	at org.eclipse.egit.core.synchronize.GitResourceVariantTree.getResourceVariant(GitResourceVariantTree.java:141)
	at org.eclipse.team.core.variants.ResourceVariantTreeSubscriber.getSyncInfo(ResourceVariantTreeSubscriber.java:52)
	at org.eclipse.team.core.subscribers.Subscriber.getDiff(Subscriber.java:371)
	at org.eclipse.team.internal.core.subscribers.SubscriberDiffTreeEventHandler.handleChange(SubscriberDiffTreeEventHandler.java:162)
	at org.eclipse.team.internal.core.subscribers.SubscriberEventHandler.collect(SubscriberEventHandler.java:219)
	at org.eclipse.team.internal.core.subscribers.SubscriberEventHandler.processEvent(SubscriberEventHandler.java:310)
	... 3 more


Reproducible: Always
Comment 1 Daniel Stein CLA 2011-10-04 07:17:47 EDT
Created attachment 204503 [details]
screen showing the error with additional infos

Addad a screen showing the error with additional infos.
Comment 2 Dariusz Luksza CLA 2011-10-24 17:38:53 EDT
It looks a little bit strange, because from this stack trace we can assume that you have an empty folder checked-in in git repository. Change[1] should fix this NPE

[1] http://egit.eclipse.org/r/4404
Comment 3 Sam Davis CLA 2011-11-09 20:50:04 EST
I get a dialog with this error every time I save any file in a project after I synchronized it and there were no changes. The dialog usually doesn't have focus, so pushing enter to close it doesn't work.
Comment 4 Matthias Sohn CLA 2011-11-22 18:36:46 EST
merged as 41c850be068559e56ab3bb1e28a09e832b34fe1d