From a97cd8cab62069bf13f2b2f29c080905732b5974 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Fri, 29 Jun 2012 14:36:48 +0200 Subject: [PATCH] fix npe with start revision and without end revision --- .../src/main/java/sonia/scm/repository/spi/GitLogCommand.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java index 6d7e3c908b..3c9ce9900b 100644 --- a/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java +++ b/scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java @@ -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;