mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Fail safe in case of "conflict not found" issue during git merge
assertTrue just logs the message and doesn't prevent the NPE on the next line.
This commit is contained in:
@@ -464,8 +464,11 @@ public class GitMergeProvider implements MergeProvider2 {
|
||||
for (VirtualFile f : files) {
|
||||
String path = VcsFileUtil.relativePath(root, f);
|
||||
Conflict c = cs.get(path);
|
||||
LOG.assertTrue(c != null, String.format("The conflict not found for file: %s(%s)%nFull ls-files output: %n%s%nAll files: %n%s",
|
||||
f.getPath(), path, output, files));
|
||||
if (c == null) {
|
||||
LOG.error(String.format("The conflict not found for file: %s(%s)%nFull ls-files output: %n%s%nAll files: %n%s",
|
||||
f.getPath(), path, output, files));
|
||||
continue;
|
||||
}
|
||||
c.myFile = f;
|
||||
if (c.myStatusTheirs == null) {
|
||||
c.myStatusTheirs = Conflict.Status.DELETED;
|
||||
|
||||
Reference in New Issue
Block a user