You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@abdera.apache.org by "Christopher Elkins (JIRA)" <ji...@apache.org> on 2008/04/25 00:39:58 UTC

[jira] Updated: (ABDERA-152) JSONFilter throws NPE when the response content-type is null

     [ https://issues.apache.org/jira/browse/ABDERA-152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christopher Elkins updated ABDERA-152:
--------------------------------------

    Attachment: JSONFilter.java.patch

> 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
>         Attachments: JSONFilter.java.patch
>
>
> 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.