[svn] Explicitly assert not null

This commit is contained in:
Kirill Likhodedov
2015-06-07 12:27:32 +03:00
parent 747891739f
commit 016c797cd5
@@ -43,6 +43,7 @@ import com.intellij.openapi.vfs.LocalFileSystem;
import com.intellij.openapi.vfs.VfsUtil;
import com.intellij.openapi.vfs.VirtualFile;
import com.intellij.util.Consumer;
import com.intellij.util.ObjectUtils;
import com.intellij.util.SmartList;
import com.intellij.util.containers.Convertor;
import com.intellij.util.containers.MultiMap;
@@ -492,7 +493,7 @@ public class MergeFromTheirsResolver {
@NotNull
private static FilePath rebasePath(@NotNull FilePath oldBase, @NotNull FilePath newBase, @NotNull FilePath path) {
String relativePath = FileUtil.getRelativePath(oldBase.getPath(), path.getPath(), '/');
String relativePath = ObjectUtils.assertNotNull(FileUtil.getRelativePath(oldBase.getPath(), path.getPath(), '/'));
return VcsUtil.getFilePath(newBase.getPath() + "/" + relativePath, path.isDirectory());
}