Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 317368 - NPE in GitResourceVariantTree
Summary: NPE in GitResourceVariantTree
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: 0.9.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.9.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-19 17:28 EDT by Matthias Sohn CLA
Modified: 2010-06-20 18:08 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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