[ 
http://issues.apache.org/jira/browse/COCOON-1815?page=comments#action_12413689 
] 

Antonio Gallardo commented on COCOON-1815:
------------------------------------------

The code was applied to cocon-2.1.10-dev and 2.2.-dev. Would you test it?

> CopySourceAction generate NPE
> -----------------------------
>
>          Key: COCOON-1815
>          URL: http://issues.apache.org/jira/browse/COCOON-1815
>      Project: Cocoon
>         Type: Bug

>   Components: * Cocoon Core
>     Versions: 2.1.8
>     Reporter: Frédéric Glorieux
>     Priority: Minor

>
> <http://www.mail-archive.com/[email protected]/msg01586.html>
> In some circumstances, with internal sources (cocoon:/), 
> org/apache/cocoon/acting/copySource.java 
> <http://svn.apache.org/viewcvs.cgi/cocoon/branches/BRANCH_2_1_X/src/java/org/apache/cocoon/acting/CopySourceAction.java?rev=30932&view=markup>
> copy-source action generate NPE in Console (nothing seems broken)
> Source objects needs to be released
> Code may be shorter with usage of excalibur SourceUtil to copy sources
>         try {
>             org.apache.excalibur.source.SourceUtil.SourceUtil.copy(src, dest);
>         } finally {
>             resolver.release(src);
>             resolver.release(dest);
>         }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to