cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r948585 - /cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSIBPValidator.java
Date Wed, 26 May 2010 20:52:10 GMT
Author: dkulp
Date: Wed May 26 20:52:10 2010
New Revision: 948585

URL: http://svn.apache.org/viewvc?rev=948585&view=rev
Log:
[CXF-2821] Add an NPE guard

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

Modified: cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSIBPValidator.java
URL: http://svn.apache.org/viewvc/cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSIBPValidator.java?rev=948585&r1=948584&r2=948585&view=diff
==============================================================================
--- cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSIBPValidator.java
(original)
+++ cxf/trunk/tools/validator/src/main/java/org/apache/cxf/tools/validator/internal/WSIBPValidator.java
Wed May 26 20:52:10 2010
@@ -297,6 +297,10 @@ public class WSIBPValidator extends Abst
             Binding binding = (Binding)ite.next();
 
             String style = SOAPBindingUtil.getCanonicalBindingStyle(binding);
+            
+            if (binding.getPortType() == null) {
+                return true;
+            }
 
             //
 



Mime
View raw message