abdera-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James M Snell (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (ABDERA-152) JSONFilter throws NPE when the response content-type is null
Date Mon, 12 May 2008 16:21:03 GMT

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

James M Snell resolved ABDERA-152.
----------------------------------

    Resolution: Fixed

Checked in

> 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.


Mime
View raw message