Commit ac0bec9a authored by Matt Tucker's avatar Matt Tucker Committed by matt

Added protection against null pointers (JM-748).

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@4228 b35dd754-fafc-0310-a699-88a17e54d16e
parent 6a1e7c51
......@@ -201,7 +201,9 @@ public class PluginServlet extends HttpServlet {
String url = nameElement.element("url-pattern").getTextTrim();
// Destroy the servlet than remove from servlets map.
GenericServlet servlet = servlets.get(pluginName + url);
servlet.destroy();
if (servlet != null) {
servlet.destroy();
}
servlets.remove(pluginName + url);
servlet = null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment