dims 2002/10/24 05:42:11
Modified: java/src/org/apache/axis/encoding
DeserializationContextImpl.java
Log:
Added try/catch for crimson as it does not support null.
Revision Changes Path
1.67 +6 -2
xml-axis/java/src/org/apache/axis/encoding/DeserializationContextImpl.java
Index: DeserializationContextImpl.java
===================================================================
RCS file:
/home/cvs/xml-axis/java/src/org/apache/axis/encoding/DeserializationContextImpl.java,v
retrieving revision 1.66
retrieving revision 1.67
diff -u -r1.66 -r1.67
--- DeserializationContextImpl.java 21 Oct 2002 14:30:41 -0000 1.66
+++ DeserializationContextImpl.java 24 Oct 2002 12:42:11 -0000 1.67
@@ -235,8 +235,12 @@
parser.setProperty("http://xml.org/sax/properties/lexical-handler",
this);
parser.parse(inputSource, this);
- // cleanup - so that the parser can be reused.
- parser.setProperty("http://xml.org/sax/properties/lexical-handler",
null);
+ try {
+ // cleanup - so that the parser can be reused.
+
parser.setProperty("http://xml.org/sax/properties/lexical-handler", null);
+ } catch (SAXException se){
+ // Ignore.
+ }
// only release the parser for reuse if there wasn't an
// error. While parsers should be reusable, don't trust