cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CXF-4267) A NPE in AttatchmentDataSource could be guarded.
Date Thu, 26 Apr 2012 15:18:17 GMT

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

Daniel Kulp reassigned CXF-4267:
--------------------------------

    Assignee: Daniel Kulp
    
> A NPE in AttatchmentDataSource could be guarded.
> ------------------------------------------------
>
>                 Key: CXF-4267
>                 URL: https://issues.apache.org/jira/browse/CXF-4267
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.5.2
>            Reporter: Stefan E. Funk
>            Assignee: Daniel Kulp
>            Priority: Trivial
>
> If I do a release a hold on a DataSource like this:
> void release(DataSource ds) throws IOException {
>   AttachmentDataSource ads = getAttachmentDataSource(ds);
>   if (ads != null) {
>     // tell attachment to hold the temporary file;
>     ads.release();
>   }
> }
> and the ads.isCached() is false, I get a NPE. I know that without a hold() there should
be no release(), but sometimes it may happen anyway (e.g. in finally blocks), and then it
would not be necesarry to check isCahced() before.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message