cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1186386 - /cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java
Date Wed, 19 Oct 2011 18:27:21 GMT
Author: dkulp
Date: Wed Oct 19 18:27:21 2011
New Revision: 1186386

URL: http://svn.apache.org/viewvc?rev=1186386&view=rev
Log:
[CXF-3846] Add a NPE guard

Modified:
    cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java

Modified: cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java?rev=1186386&r1=1186385&r2=1186386&view=diff
==============================================================================
--- cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java
(original)
+++ cxf/trunk/common/wstx-msv-validation/src/main/java/org/apache/cxf/wstx_msv_validation/WoodstoxValidationImpl.java
Wed Oct 19 18:27:21 2011
@@ -63,13 +63,13 @@ public class WoodstoxValidationImpl impl
      * @throws XMLStreamException */
     public void setupValidation(XMLStreamReader reader, 
                                 ServiceInfo serviceInfo) throws XMLStreamException {
-        if (utils != null) {
+        if (utils != null && reader != null) {
             utils.setupValidation(reader, serviceInfo);
         }
     }
 
     public void setupValidation(XMLStreamWriter writer, ServiceInfo serviceInfo) throws XMLStreamException
{
-        if (utils != null) {
+        if (utils != null && writer != null) {
             utils.setupValidation(writer, serviceInfo);
         }
     }



Mime
View raw message