You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Jeromy Evans (JIRA)" <ji...@apache.org> on 2008/02/27 00:07:08 UTC

[jira] Resolved: (WW-2512) DefaultHttpHeaders throws NPE trying to generate ETag when model is null

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

Jeromy Evans resolved WW-2512.
------------------------------

    Resolution: Fixed

Committed check for the null case

> DefaultHttpHeaders throws NPE trying to generate ETag when model is null
> ------------------------------------------------------------------------
>
>                 Key: WW-2512
>                 URL: https://issues.apache.org/struts/browse/WW-2512
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - REST
>    Affects Versions: 2.1.1
>            Reporter: Jeromy Evans
>            Priority: Minor
>             Fix For: 2.1.1
>
>
> DefaultHttpHeaders attempts to generate an ETag using the hashcode of the model if not disabled and not explicitly specified.  This throws an NPE if the model is null, which may be the case for some create operations.  Rather than mandate that ETag must be explicitly disabled, just don't generate one if it's not relevant.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.