diff options
-rw-r--r-- | src/main/java/com/gitblit/tickets/BranchTicketService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/tickets/BranchTicketService.java b/src/main/java/com/gitblit/tickets/BranchTicketService.java index 3a634e05..284b1be1 100644 --- a/src/main/java/com/gitblit/tickets/BranchTicketService.java +++ b/src/main/java/com/gitblit/tickets/BranchTicketService.java @@ -659,7 +659,9 @@ public class BranchTicketService extends ITicketService implements RefsChangedLi ticket.number, db.getDirectory()), t); } finally { // release the treewalk - treeWalk.release(); + if (treeWalk != null) { + treeWalk.release(); + } } } finally { db.close(); |