diff options
author | James Moger <james.moger@gitblit.com> | 2014-10-31 07:32:28 -0600 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-10-31 07:32:28 -0600 |
commit | 9197cd604caa067186a8639882afa881c37be291 (patch) | |
tree | b47cebe83f1dd85b9c5970f4152735ed76e96d9c /src | |
parent | f11592770694e9d0a391a31fa23f455bc05756c1 (diff) | |
parent | 48ca8a006d6c96af0b134ebf07daa35eb367d5d8 (diff) | |
download | gitblit-9197cd604caa067186a8639882afa881c37be291.tar.gz gitblit-9197cd604caa067186a8639882afa881c37be291.zip |
Merged #213 "Fix exception in FileTicketService when deleting a repository"
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/gitblit/tickets/FileTicketService.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/com/gitblit/tickets/FileTicketService.java b/src/main/java/com/gitblit/tickets/FileTicketService.java index c8346d14..1e82f0de 100644 --- a/src/main/java/com/gitblit/tickets/FileTicketService.java +++ b/src/main/java/com/gitblit/tickets/FileTicketService.java @@ -493,6 +493,10 @@ public class FileTicketService extends ITicketService { @Override protected boolean deleteAllImpl(RepositoryModel repository) { Repository db = repositoryManager.getRepository(repository.name); + if (db == null) { + // the tickets no longer exist because the db no longer exists + return true; + } try { File dir = new File(db.getDirectory(), TICKETS_PATH); return FileUtils.delete(dir); |