DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30849>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30849
[PATCH] null pointer exception in XMLDB transformer
Summary: [PATCH] null pointer exception in XMLDB transformer
Product: Cocoon 2
Version: Current CVS 2.1
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: Other
Component: blocks
AssignedTo: dev@cocoon.apache.org
ReportedBy: tjg@star.le.ac.uk
The code assumes that DatabaseManager.getCollection raises an XMLDBException for
errors, but in fact in at least some cases (non-existent collection), it returns
null.
The patch reworks the error checking to explicitly raise an exception for this case.
|