You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/06/28 07:39:03 UTC

DO NOT REPLY [Bug 10311] New: - Notifier generates a NullpointerException if the StreamGenerator throws a SAXParseException

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10311>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10311

Notifier generates a NullpointerException if the StreamGenerator throws a SAXParseException

           Summary: Notifier generates a NullpointerException if the
                    StreamGenerator throws a SAXParseException
           Product: Cocoon 2
           Version: 2.0.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: core
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: pik@uniquare.com


Notifier generates a NullpointerException if the StreamGenerator throws a 
SAXParseException (location in extra descriptions not set).

The method Notifier.notify throws a NullpointerException if a value in 
extraDescriptions is null.

The following solves the problem:

+ if (extraDescriptions.get(key) != null)
+ {
        ch.characters(extraDescriptions.get(key).toString().toCharArray(), 0,
                (extraDescriptions.get(key).toString()).length());
+ }

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org