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

Bug 311317

Summary: Unhandled event loop exception / NPE at revalidateImpl pushing to RO urls
Product: [Technology] EGit Reporter: Chris West (Faux) <eclipse>
Component: UIAssignee: Project Inbox <egit.ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: 0.8.0   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
Example error log generated none

Description Chris West (Faux) CLA 2010-05-02 12:49:50 EDT
Build Identifier: I20100413-1521

EGit 0.7.1.

Team -> Push to..'s second page (Push Ref Specifications) causes an Unhandled event loop exception to be logged if the remote URL is read-only.

org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.NullPointerException)
[...]
Caused by: java.lang.NullPointerException
..org.eclipse.egit.ui.internal.components.RefSpecPage.revalidateImpl(RefSpecPage.java:259)
..org.eclipse.egit.ui.internal.components.RefSpecPage.access$2(RefSpecPage.java:228)
[...]

Full stack attached.

Nothing seems immediately wrong with the UI, although the push will eventually fail (obviously).  Actual URL tested: git://git.goeswhere.com/git/dollar.git

Reproducible: Always

Steps to Reproduce:
1. Clone a project from a read-only location, e.g.
> git remote -v
origin  git://git.foo.com/git/bar.git (fetch)
origin  git://git.foo.com/git/bar.git (push)
2. Team -> Push to..
3. Ensure "origin: git://git.foo.com/git/bar.git" is selected as the target.
4. Next.
5. Observe the error log.
Comment 1 Chris West (Faux) CLA 2010-05-02 12:50:39 EDT
Created attachment 166735 [details]
Example error log generated
Comment 2 Chris West (Faux) CLA 2010-05-02 13:01:33 EDT
Like bug 311315, also fixed as of 0.8.0.201004301514.

*** This bug has been marked as a duplicate of bug 304182 ***