cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r614208 - /incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/JavascriptUtils.java
Date Tue, 22 Jan 2008 14:33:40 GMT
Author: bimargulies
Date: Tue Jan 22 06:33:39 2008
New Revision: 614208

URL: http://svn.apache.org/viewvc?rev=614208&view=rev
Log:
fix npe

Modified:
    incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/JavascriptUtils.java

Modified: incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/JavascriptUtils.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/JavascriptUtils.java?rev=614208&r1=614207&r2=614208&view=diff
==============================================================================
--- incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/JavascriptUtils.java
(original)
+++ incubator/cxf/trunk/rt/javascript/src/main/java/org/apache/cxf/javascript/JavascriptUtils.java
Tue Jan 22 06:33:39 2008
@@ -279,6 +279,9 @@
      * @return
      */
     public static boolean mtomCandidateType(XmlSchemaType type) {
+        if (type == null) {
+            return false;
+        }
         if (XmlSchemaConstants.BASE64BINARY_QNAME.equals(type.getQName())) {
             return true;
         }



Mime
View raw message