1
0
mirror of https://github.com/octoleo/plantuml-server.git synced 2024-06-29 04:53:31 +00:00

[BUGFIX] Servlet init fixed

This commit is contained in:
Maxime Sinclair 2014-03-05 14:32:20 +01:00
parent 712c8128ef
commit 0318f485b7

View File

@ -30,7 +30,6 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
@ -124,8 +123,8 @@ public class PlantUmlServlet extends HttpServlet {
return;
}
public void init(ServletConfig config) throws ServletException {
config.getServletContext().setAttribute("cfg", Configuration.get());
public void init() throws ServletException {
getServletConfig().getServletContext().setAttribute("cfg", Configuration.get());
}
private Transcoder getTranscoder() {