IDEA-83677 NPE at org.jetbrains.idea.svn.history.SvnHistoryProvider$MyLogEntryHandler.createRevision

This commit is contained in:
irengrig
2012-03-29 17:17:08 +04:00
parent ed0b4c6a53
commit ab67492caf
@@ -625,7 +625,8 @@ public class SvnHistoryProvider implements VcsHistoryProvider, VcsCacheableHisto
String message = logEntry.getMessage();
SVNRevision rev = SVNRevision.create(logEntry.getRevision());
// final SVNURL url = myRepositoryRoot.appendPath(myLastPath, true);
final SVNURL url = myRepositoryRoot.appendPath(entryPath.getPath(), true);
final SVNURL url = entryPath != null ? myRepositoryRoot.appendPath(entryPath.getPath(), true) :
myRepositoryRoot.appendPath(myLastPath, true);
return new SvnFileRevision(myVcs, myPegRevision, rev, url.toString(), author, date, message, copyPath, myCharset);
}
}