From 0154160c7dcf74508a4b57ac44f4f135022cccb4 Mon Sep 17 00:00:00 2001 From: Arnaud Roques Date: Tue, 6 Dec 2022 18:52:30 +0100 Subject: [PATCH] Improve tests --- .../java/net/sourceforge/plantuml/servlet/ProxyServlet.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/net/sourceforge/plantuml/servlet/ProxyServlet.java b/src/main/java/net/sourceforge/plantuml/servlet/ProxyServlet.java index 151e35b..0a7e026 100644 --- a/src/main/java/net/sourceforge/plantuml/servlet/ProxyServlet.java +++ b/src/main/java/net/sourceforge/plantuml/servlet/ProxyServlet.java @@ -64,6 +64,9 @@ public class ProxyServlet extends HttpServlet { } public static boolean forbiddenURL(String full) { + if (full == null) { + return true; + } if (full.startsWith("https://") == false && full.startsWith("http://") == false) { return true; }