]> source.dussan.org Git - gitblit.git/commitdiff
Fix NPE in bugtraq processor
authorJames Moger <james.moger@gitblit.com>
Fri, 7 Mar 2014 20:15:52 +0000 (15:15 -0500)
committerJames Moger <james.moger@gitblit.com>
Fri, 7 Mar 2014 20:15:52 +0000 (15:15 -0500)
src/main/java/com/gitblit/wicket/pages/DocPage.java

index 875765ffdb6df6b5f4b512c39b46e542c2f960f3..bf99978cc359497d91a869634ee6b5b5f8c398b8 100644 (file)
@@ -67,6 +67,10 @@ public class DocPage extends RepositoryPage {
                        }\r
                }\r
 \r
+               if (markupText == null) {\r
+                       markupText = "";\r
+               }\r
+\r
                BugtraqProcessor bugtraq = new BugtraqProcessor(app().settings());\r
                markupText = bugtraq.processText(getRepository(), repositoryName, markupText);\r
 \r