Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314590 - NPE in RepositoriesView
Summary: NPE in RepositoriesView
Status: RESOLVED FIXED
Alias: None
Product: EGit
Classification: Technology
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 0.8.0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 19:56 EDT by Matthias Sohn CLA
Modified: 2010-06-29 03:33 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-05-26 19:56:04 EDT
I see this NPE quite frequently, not sure when this is hit

I am using EGit 0.8.0.201005261531 on Helios RC1

!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.egit.ui".
!STACK 0
java.lang.NullPointerException
	at java.util.Collections.sort(Collections.java:116)
	at org.eclipse.egit.ui.internal.repository.RepositoriesViewContentProvider.getElements(RepositoriesViewContentProvider.java:44)
	at org.eclipse.egit.ui.internal.repository.RepositoriesView.showResource(RepositoriesView.java:1864)
	at org.eclipse.egit.ui.internal.repository.RepositoriesView$43.done(RepositoriesView.java:1852)
	at org.eclipse.core.internal.jobs.JobListeners$3.notify(JobListeners.java:39)
	at org.eclipse.core.internal.jobs.JobListeners.doNotify(JobListeners.java:112)
	at org.eclipse.core.internal.jobs.JobListeners.done(JobListeners.java:152)
	at org.eclipse.core.internal.jobs.JobManager.endJob(JobManager.java:646)
	at org.eclipse.core.internal.jobs.WorkerPool.endJob(WorkerPool.java:105)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:71)
Comment 1 Mathias Kinzler CLA 2010-06-09 05:19:46 EDT
Ok, I think I understand the problem more or less. However, I have to wait for

http://egit.eclipse.org/r/#change,778

before I can continue.
Comment 2 Mathias Kinzler CLA 2010-06-29 03:33:14 EDT
Instead of using job listener, the RepositoriesView.showResource() method now simply uses join() when a refresh job is running, so the problem should not occur anymore.