davideuler / gitblit

Automatically exported from code.google.com/p/gitblit
Apache License 2.0
0 stars 0 forks source link

NPE when deleting repository #532

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by uwe.geer...@gmail.com on 8 Nov 2014 at 6:20

Attachments:

GoogleCodeExporter commented 9 years ago
That is already fixed on develop for the next major release.  I may do a 1.6.3, 
we'll see.

Original comment by James.Mo...@gmail.com on 10 Nov 2014 at 7:20