geosolutions-it / http-proxy

Lean and Mean HTTP Proxy written in Java
GNU General Public License v3.0
21 stars 31 forks source link

NullPointerException in MimeTypeChecker #28

Closed tdipisa closed 10 years ago

tdipisa commented 10 years ago

If content type is not provided MimeTypeChecker throw the exception below:

type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception java.lang.NullPointerException it.geosolutions.httpproxy.MimeTypeChecker.onRemoteResponse(MimeTypeChecker.java:66) it.geosolutions.httpproxy.HTTPProxy.onRemoteResponse(HTTPProxy.java:224) it.geosolutions.httpproxy.HTTPProxy.executeProxyRequest(HTTPProxy.java:684) it.geosolutions.httpproxy.HTTPProxy.doGet(HTTPProxy.java:288) javax.servlet.http.HttpServlet.service(HttpServlet.java:621) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) note The full stack trace of the root cause is available in the Apache Tomcat/7.0.26 logs.