[ http://issues.apache.org/jira/browse/COCOON-1243?page=all ]
Ralph Goers updated COCOON-1243:
--------------------------------
Bugzilla Id: (was: 30849)
Component: Blocks: XML-DB
(was: Blocks: (Undefined))
Description:
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.
was:
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.
> [PATCH] null pointer exception in XMLDB transformer
> ---------------------------------------------------
>
> Key: COCOON-1243
> URL: http://issues.apache.org/jira/browse/COCOON-1243
> Project: Cocoon
> Type: Bug
> Components: Blocks: XML-DB
> Versions: 2.1.8-dev (Current SVN)
> Environment: Operating System: All
> Platform: All
> Reporter: Tim Goodwin
> Assignee: Cocoon Developers Team
> Attachments: patch
>
> 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.
--
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