JSONFilter throws NPE when the response content-type is null
------------------------------------------------------------
Key: ABDERA-152
URL: https://issues.apache.org/jira/browse/ABDERA-152
Project: Abdera
Issue Type: Bug
Affects Versions: 0.4.0
Reporter: Christopher Elkins
Priority: Minor
If the response content-type is null (e.g., when responding with "204 No
Content" after DELETE of an entry), JSONFilter throws a NullPointerException
trying to determine whether to send JSON:
Apr 24, 2008 2:59:19 PM org.apache.abdera.protocol.server.servlet.AbderaServlet
error
SEVERE: Error servicing request
java.lang.NullPointerException
at org.apache.abdera.ext.json.JSONFilter.filter(JSONFilter.java:50)
at
org.apache.abdera.protocol.server.FilterChain.next(FilterChain.java:42)
at
org.apache.abdera.protocol.server.servlet.AbderaServlet.service(AbderaServlet.java:90)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.