You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2006/10/25 03:45:53 UTC
svn commit: r467538 -
/webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Author: dims
Date: Tue Oct 24 18:45:52 2006
New Revision: 467538
URL: http://svn.apache.org/viewvc?view=rev&rev=467538
Log:
more checks to prevent NPE
Modified:
webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Modified: webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java?view=diff&rev=467538&r1=467537&r2=467538
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java (original)
+++ webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java Tue Oct 24 18:45:52 2006
@@ -534,13 +534,19 @@
private Operation findOperation(PortType portType, BindingOperation wsdl4jBindingOperation) {
Operation op = wsdl4jBindingOperation
.getOperation();
- String input = op.getInput().getName();
- String output = op.getOutput().getName();
- if(":none".equals(input)) {
- input = null;
+ String input = null;
+ if(op != null && op.getInput() != null) {
+ input = op.getInput().getName();
+ if(":none".equals(input)) {
+ input = null;
+ }
}
- if(":none".equals(output)) {
- output = null;
+ String output = null;
+ if(op != null && op.getOutput() != null) {
+ output = op.getOutput().getName();
+ if(":none".equals(output)) {
+ output = null;
+ }
}
Operation op2 = portType.getOperation(op.getName(), input, output);
return ((op2 == null) ? op : op2);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org