From b635f482e4b1a8ce4d39990f532a15d0ec0f0be2 Mon Sep 17 00:00:00 2001 From: James Moger Date: Fri, 7 Mar 2014 15:15:52 -0500 Subject: [PATCH] Fix NPE in bugtraq processor --- src/main/java/com/gitblit/wicket/pages/DocPage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/gitblit/wicket/pages/DocPage.java b/src/main/java/com/gitblit/wicket/pages/DocPage.java index 875765ff..bf99978c 100644 --- a/src/main/java/com/gitblit/wicket/pages/DocPage.java +++ b/src/main/java/com/gitblit/wicket/pages/DocPage.java @@ -67,6 +67,10 @@ public class DocPage extends RepositoryPage { } } + if (markupText == null) { + markupText = ""; + } + BugtraqProcessor bugtraq = new BugtraqProcessor(app().settings()); markupText = bugtraq.processText(getRepository(), repositoryName, markupText); -- 2.39.5