| Summary: | NPE in GitModelSynchronizeParticipant.asCompareInput | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Technology] EGit | Reporter: | Michael Scharf <eclipse> | ||||
| Component: | UI | Assignee: | Robin Stocker <robin> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | robin | ||||
| Version: | 2.2 | ||||||
| Target Milestone: | 2.2 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
Could you describe the steps to reproduce the problem? I tried a few things but could not reproduce it. E.g. how did you start the synchronization, what is the project and repository structure, what kind of change is it. The NPE itself is easy to fix but maybe the root cause is another problem, in which case it would be useful to know. I cannot reproduce it either... But it happened several times to me. If it happens again I'll try to reproduce it. Ok, here's the fix for the NPE: https://git.eclipse.org/r/9215 Ah, from the changes I can tell you what goes wrong: I am working a a bigger project where I add out only a few projects onto my workspace. I think the problem comes when a change contains files in git which are not part of the workspace. See also bug 395041 |
Created attachment 224631 [details] The full stack trace When I double click in the syncronize perspective on a difference I get the following exception. I am using EGit 2.2.0.201212042214 java.lang.NullPointerException at org.eclipse.egit.ui.internal.synchronize.GitModelSynchronizeParticipant.asCompareInput(GitModelSynchronizeParticipant.java:220) at org.eclipse.team.internal.ui.synchronize.actions.OpenInCompareAction.openCompareEditor(OpenInCompareAction.java:113) at org.eclipse.team.internal.ui.synchronize.actions.OpenInCompareAction.run(OpenInCompareAction.java:68) at