mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Mercurial annotations: fix NPE
This commit is contained in:
@@ -49,7 +49,7 @@ public class HgAnnotationProvider implements AnnotationProvider {
|
||||
final HgFile hgFile = new HgFile(vcsRoot, VfsUtil.virtualToIoFile(file));
|
||||
final List<HgAnnotationLine> annotationResult = (new HgAnnotateCommand(myProject)).execute(hgFile, revision);
|
||||
final List<HgFileRevision> logResult = (new HgLogCommand(myProject)).execute(hgFile, DEFAULT_LIMIT, false);
|
||||
return new HgAnnotation(myProject, hgFile, annotationResult, logResult, revision.getRevisionNumber());
|
||||
return new HgAnnotation(myProject, hgFile, annotationResult, logResult, revision == null ? null : revision.getRevisionNumber());
|
||||
}
|
||||
|
||||
public boolean isAnnotationValid(VcsFileRevision rev) {
|
||||
|
||||
Reference in New Issue
Block a user