cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1304008 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java
Date Thu, 22 Mar 2012 19:37:26 GMT
Author: dkulp
Date: Thu Mar 22 19:37:26 2012
New Revision: 1304008

URL: http://svn.apache.org/viewvc?rev=1304008&view=rev
Log:
A NPE guard

Modified:
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java?rev=1304008&r1=1304007&r2=1304008&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java
(original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/io/DataReaderImpl.java
Thu Mar 22 19:37:26 2012
@@ -66,7 +66,8 @@ public class DataReaderImpl<T> extends J
         
         public boolean handleEvent(ValidationEvent event) {
             String msg = event.getMessage();
-            if (msg.contains(":Id") 
+            if (msg != null 
+                && msg.contains(":Id") 
                 && (msg.startsWith("cvc-type.3.1.1: ") 
                     || msg.startsWith("cvc-type.3.2.2: ") 
                     || msg.startsWith("cvc-complex-type.3.1.1: ")



Mime
View raw message