cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 30849] New: - [PATCH] null pointer exception in XMLDB transformer
Date Wed, 25 Aug 2004 15:05:14 GMT
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.

Mime
View raw message