Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 364622 - R4Eclipse Find review items from GIT SCM
Summary: R4Eclipse Find review items from GIT SCM
Status: RESOLVED DUPLICATE of bug 367213
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Alvaro Sanchez-Leon CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 11:47 EST by Jacques Bouthillier CLA
Modified: 2012-06-04 08:21 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacques Bouthillier CLA 2011-11-23 11:47:26 EST
When using GIT with a project having less than 10 commits
with "find review items", I get the following error:
Tested with com.ericsson.r4e.pref.store and com.ericsson.reviews.clearcase.feature
Tested on 3 platforms and the same issue occurs. When I selected a git project with more than 10 commits, it went fast and no problems.
======================================================== 

java.lang.ArrayIndexOutOfBoundsException: 1
        at org.eclipse.jgit.treewalk.TreeWalk.getObjectId(TreeWalk.java:673)
        at org.eclipse.jgit.diff.DiffEntry.scan(DiffEntry.java:119)
        at org.eclipse.mylyn.internal.git.core.GitConnector.getChangeSet(GitConnector.java:124)
        at org.eclipse.mylyn.internal.git.ui.GetChangeSetDialog.updateChangeSet(GetChangeSetDialog.java:461)
        at org.eclipse.mylyn.internal.git.ui.GetChangeSetDialog.populateNextChangeSets(GetChangeSetDialog.java:292)        at org.eclipse.mylyn.internal.git.ui.GetChangeSetDialog.createFormContent(GetChangeSetDialog.java:244)
        at org.eclipse.ui.forms.FormDialog.createDialogArea(FormDialog.java:92)
        at org.eclipse.jface.dialogs.Dialog.createContents(Dialog.java:760)
        at org.eclipse.jface.window.Window.create(Window.java:431)
        at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
        at org.eclipse.jface.window.Window.open(Window.java:790)
        at org.eclipse.mylyn.internal.git.ui.connector.GitConnectorUi.getChangeSet(GitConnectorUi.java:52)
        at org.eclipse.mylyn.reviews.r4e.ui.internal.commands.FindReviewItemsHandler.execute(FindReviewItemsHandler.java:140)
        at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
        at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
        at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
        at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
        at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
        at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:241)
        at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:829)
        at org.eclipse.ui.menus.CommandContributionItem.access$19(CommandContributionItem.java:815)
        at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:805)
Comment 1 Alvaro Sanchez-Leon CLA 2012-06-04 08:21:52 EDT
Marking as duplicate

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