mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-81927 NPE at com.intellij.openapi.vcs.FilePathImpl.isUnder
This commit is contained in:
@@ -44,10 +44,10 @@ public class ChangesComparator implements Comparator<Change> {
|
||||
if (myTreeCompare) {
|
||||
final FilePath parentPath1 = filePath1.getParentPath();
|
||||
final FilePath parentPath2 = filePath2.getParentPath();
|
||||
if (parentPath1 != null && parentPath1.isUnder(parentPath2, true)) {
|
||||
if (parentPath1 != null && parentPath2 != null && parentPath1.isUnder(parentPath2, true)) {
|
||||
return -1;
|
||||
}
|
||||
if (parentPath2 != null && parentPath2.isUnder(parentPath1, true)) {
|
||||
if (parentPath2 != null && parentPath1 != null && parentPath2.isUnder(parentPath1, true)) {
|
||||
return 1;
|
||||
}
|
||||
return filePath1.getPath().compareToIgnoreCase(filePath2.getPath());
|
||||
|
||||
Reference in New Issue
Block a user