Skip to content

NPE when deleting repository #828

@gitblit

Description

@gitblit

Originally reported on Google Code with ID 532

What steps will reproduce the problem?
1. Start tomcat with gitblit war file
2. Create a new repository as a logged-in user. Check to create a readme file.
3. immediately delete the repository
4. look at tomcat catalina.out log

What is the expected output? What do you see instead?
expected to delete repository without errors. found a null pointer exception:

2014-11-08 19:07:05 [INFO ] Repository "test4.git" deleted
2014-11-08 19:07:05 [ERROR] 
java.lang.NullPointerException
    at com.gitblit.tickets.FileTicketService.deleteAllImpl(FileTicketService.java:492)
    at com.gitblit.tickets.ITicketService.deleteAll(ITicketService.java:1091)
    at com.gitblit.GitBlit.deleteRepositoryModel(GitBlit.java:339)
    at com.gitblit.wicket.pages.EditRepositoryPage$5.onClick(EditRepositoryPage.java:684)

What version of the product are you using? On what operating system?
Gitblit 1.6.2 WAR
Debian7 64bit Kernel: 3.2.0-4-amd64
Java version 1.7.0_65
Tomcat 7.0.56

Attached the stacktrace from catalina.out



Reported by uwe.geercken on 2014-11-08 18:20:28


- _Attachment: [gitblit_npe_20141108.txt](https://storage.googleapis.com/google-code-attachments/gitblit/issue-532/comment-0/gitblit_npe_20141108.txt)_

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions