mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix of NPE in IDEA-56157 Sort out performance problem with Perforce changelists refresh
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ public class VcsContentAnnotationImpl implements VcsContentAnnotation {
|
||||
public boolean intervalRecentlyChanged(VirtualFile file, TextRange lineInterval, VcsRevisionNumber currentRevisionNumber) {
|
||||
final ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(myProject);
|
||||
final AbstractVcs vcs = vcsManager.getVcsFor(file);
|
||||
if (vcs == null) return false;
|
||||
if (vcs == null || vcs.getDiffProvider() == null) return false;
|
||||
if (currentRevisionNumber == null) {
|
||||
currentRevisionNumber = vcs.getDiffProvider().getCurrentRevision(file);
|
||||
assert currentRevisionNumber != null;
|
||||
|
||||
Reference in New Issue
Block a user