fix npe with start revision and without end revision

This commit is contained in:
Sebastian Sdorra
2012-06-29 14:36:48 +02:00
parent c31376f639
commit a97cd8cab6

View File

@@ -204,7 +204,7 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand
ObjectId endId = null;
if (!Strings.isNullOrEmpty(request.getStartChangeset()))
if (!Strings.isNullOrEmpty(request.getEndChangeset()))
{
endId = gr.resolve(request.getEndChangeset());
}
@@ -217,7 +217,7 @@ public class GitLogCommand extends AbstractGitCommand implements LogCommand
}
for (RevCommit commit : cmd.call())
{
{
if (!started && ((startId == null) || commit.getId().equals(startId)))
{
started = true;