cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1095750 - /cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/MIMEBindingValidator.java
Date Thu, 21 Apr 2011 15:21:28 GMT
Author: dkulp
Date: Thu Apr 21 15:21:28 2011
New Revision: 1095750

URL: http://svn.apache.org/viewvc?rev=1095750&view=rev
Log:
Add an NPE guard in the MIME validator

Modified:
    cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/MIMEBindingValidator.java

Modified: cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/MIMEBindingValidator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/MIMEBindingValidator.java?rev=1095750&r1=1095749&r2=1095750&view=diff
==============================================================================
--- cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/MIMEBindingValidator.java
(original)
+++ cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/MIMEBindingValidator.java
Thu Apr 21 15:21:28 2011
@@ -47,6 +47,9 @@ public class MIMEBindingValidator
             Iterator itOperation = binding.getBindingOperations().iterator();
             while (itOperation.hasNext()) {
                 BindingOperation bindingOperation = (BindingOperation)itOperation.next();
+                if (bindingOperation.getBindingInput() == null) {
+                    continue;
+                }
                 Iterator itInputExt = bindingOperation.getBindingInput().getExtensibilityElements()
                     .iterator();
                 while (itInputExt.hasNext()) {



Mime
View raw message