Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.1.8
-
None
Description
<http://www.mail-archive.com/users-fr@cocoon.apache.org/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);
}
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);
}