Commit 88b3d5e2 authored by Alex Wenckus's avatar Alex Wenckus Committed by alex

Notification if the servlet class isn't found rather then a NPE somewhere else. {JM-709}

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3958 b35dd754-fafc-0310-a699-88a17e54d16e
parent e1357128
......@@ -152,6 +152,10 @@ public class PluginServlet extends HttpServlet {
String url = nameElement.element("url-pattern").getTextTrim();
// Register the servlet for the URL.
Class servletClass = classMap.get(name);
if(servletClass == null) {
Log.error("Unable to load servlet, " + name + ", servlet-class not found.");
continue;
}
Object instance = servletClass.newInstance();
if (instance instanceof GenericServlet) {
// Initialize the servlet then add it to the map..
......
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