diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/checkin/TodoCheckinHandlerWorker.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/checkin/TodoCheckinHandlerWorker.java index dc347620e3c1..6b32c634e480 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/checkin/TodoCheckinHandlerWorker.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/checkin/TodoCheckinHandlerWorker.java @@ -91,9 +91,9 @@ public class TodoCheckinHandlerWorker { FilePath afterFilePath = afterRevision.getFile(); VirtualFile afterFile = LocalFileSystem.getInstance().refreshAndFindFileByPath(afterFilePath.getPath()); - progress(afterFile != null ? ProjectUtil.calcRelativeToProjectPath(afterFile, myProject) : afterFilePath.getName()); - EditedFileProcessorBase fileProcessor = ReadAction.compute(() -> { + progress(afterFile != null ? ProjectUtil.calcRelativeToProjectPath(afterFile, myProject) : afterFilePath.getName()); + if (afterFile == null || afterFile.isDirectory() || afterFile.getFileType().isBinary()) { return null; // skip detection }