Bug 415703 - Fetch attempts to fetch when no remote change is available
Summary: Fetch attempts to fetch when no remote change is available
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: Macintosh Mac OS X
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Mylyn Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-22 13:12 EDT by Miles Parker CLA
Modified: 2013-08-22 13:12 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miles Parker CLA 2013-08-22 13:12:51 EDT
>Steffen in bug 413480 comment 48:

If I cancel retrieval of a patch set and then select the Fetch button I get the following exception:

java.lang.NullPointerException
	at org.eclipse.mylyn.internal.gerrit.ui.factories.AbstractPatchSetUiFactory.getGitRepository(AbstractPatchSetUiFactory.java:105)
	at org.eclipse.mylyn.internal.gerrit.ui.factories.FetchUiFactory.execute(FetchUiFactory.java:32)
	at org.eclipse.mylyn.reviews.ui.spi.factories.AbstractUiFactory.handleExecute(AbstractUiFactory.java:81)
	at org.eclipse.mylyn.reviews.ui.spi.factories.AbstractUiFactory.access$0(AbstractUiFactory.java:79)
	at org.eclipse.mylyn.reviews.ui.spi.factories.AbstractUiFactory$1.widgetSelected(AbstractUiFactory.java:72)
	
__

This is occuring because we're allowing the user to trigger a fetch when a Remote object is not available. (Because the user cancelled the retrieval.) We need to prevent from getting to this point. (Though the user won't be able to accomplish what they want any better, at least it will be a nicer error message.)
Comment 1 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn