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

Bug 317368

Summary: NPE in GitResourceVariantTree
Product: [Technology] EGit Reporter: Matthias Sohn <matthias.sohn>
Component: CoreAssignee: Project Inbox <egit.core-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: dariusz.luksza
Version: 0.9.0   
Target Milestone: 0.9.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Matthias Sohn CLA 2010-06-19 17:28:30 EDT
- cloned a bare repo
- did one change and committed that
- ran "Team" > "Sychronize"
- double clicked the outgoing change to see the delta
- deleted the project from workspace
-> NPE

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.GitResourceVariantTree.findFileVariant(GitResourceVariantTree.java:238)
at org.eclipse.egit.core.synchronize.GitResourceVariantTree.fetchVariant(GitResourceVariantTree.java:356)
at org.eclipse.egit.core.synchronize.GitResourceVariantTree.fetchVariant(GitResourceVariantTree.java:363)
at org.eclipse.egit.core.synchronize.GitResourceVariantTree.getResourceVariant(GitResourceVariantTree.java:213)
at org.eclipse.team.core.variants.ResourceVariantTreeSubscriber.getSyncInfo(ResourceVariantTreeSubscriber.java:52)
at org.eclipse.team.internal.core.subscribers.SubscriberSyncInfoEventHandler.handleChange(SubscriberSyncInfoEventHandler.java:89)
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
Comment 1 Dariusz Luksza CLA 2010-06-19 18:10:31 EDT
Patch set:
http://egit.eclipse.org/r/905
should fix this issue.
Comment 2 Matthias Sohn CLA 2010-06-20 18:08:18 EDT
merged as 41ada1c42f7a02d06e8e2030f4c81455e2319aca