Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 363094 - NPE in ResourceVariantTreeSubscriber.getSyncInfo
Summary: NPE in ResourceVariantTreeSubscriber.getSyncInfo
Status: CLOSED WORKSFORME
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-07 15:02 EST by Carolyn MacLeod CLA
Modified: 2012-11-05 17:42 EST (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 Carolyn MacLeod CLA 2011-11-07 15:02:14 EST
EGit 1.1.
From the command line, I stashed some changes on branch 'a', and then later I applied the stash to the (clean) master branch.

Back in Eclipse, when I tried to Refresh my projects in the Package Explorer, I got an Internal Error due to an NPE:

eclipse.buildId=I20110915-1308
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20100630 (JIT enabled)
J9VM - 20100629_60535_lHdSMr
JIT  - 20100623_16197_r8
GC   - 20100211_AA
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_CA
Command-line arguments:  -data /home/seven/workspace-git -os linux -ws gtk -arch x86

Error
Mon Nov 07 14:31:33 EST 2011
Errors have occurred while calculating the synchronization state for Git without local changes.

------------------

eclipse.buildId=I20110915-1308
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20100630 (JIT enabled)
J9VM - 20100629_60535_lHdSMr
JIT  - 20100623_16197_r8
GC   - 20100211_AA
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_CA
Command-line arguments:  -data /home/seven/workspace-git -os linux -ws gtk -arch x86

Error
Mon Nov 07 14:31:33 EST 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.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

---------------------------

eclipse.buildId=I20110915-1308
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20100630 (JIT enabled)
J9VM - 20100629_60535_lHdSMr
JIT  - 20100623_16197_r8
GC   - 20100211_AA
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_CA
Command-line arguments:  -data /home/seven/workspace-git -os linux -ws gtk -arch x86

Error
Mon Nov 07 14:31:33 EST 2011
An internal error occurred processing subscriber events.

java.lang.NullPointerException
	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)
	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)
Comment 1 Robin Stocker CLA 2012-11-05 17:42:58 EST
Some problems were fixed since this bug was opened, please reopen if the problem still exists with the newest version of EGit.