You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Peter McCracken <pe...@ca.ibm.com> on 2003/08/18 20:56:16 UTC
Re: NPE patch for PSVIWriter
I realised a more efficient solution to the NPEs would be to immediately
return from all XNI event methods if the document handler is null. This
way, we don't create the events for the PSVI stream, only to drop them when
we find there's no document handler.
The attached patch should be used, instead of the previous one.
Peter McCracken/Toronto/IBM
(See attached file: PSVIWriter.java.diff)
Peter
McCracken/Toronto To: xerces-j-dev@xml.apache.org
/IBM@IBMCA cc:
Subject: NPE patch for PSVIWriter
08/18/2003 01:45
PM
Please respond to
xerces-j-dev
Hi,
Here's a patch for PSVIWriter, which avoids NullPointerExceptions when the
document handler is null.
However, I should caution people against using a PSVIWriter in the pipeline
when it has a null document handler, because it would be unnecessary. It
would do work to convert the pipeline to represent the PSVI, and then drop
that information because it has no place to send it.
Cheers,
Peter McCracken/Toronto/IBM
(See attached file: PSVIWriter.java.diff)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
#### PSVIWriter.java.diff has been removed from this note on August 18,
2003 by Peter McCracken