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.

Reply via email to