axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From barre...@apache.org
Subject svn commit: r534196 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
Date Tue, 01 May 2007 18:54:24 GMT
Author: barrettj
Date: Tue May  1 11:54:24 2007
New Revision: 534196

URL: http://svn.apache.org/viewvc?view=rev&rev=534196
Log:
AXIS2-2538
Fix contributed by Roy Wood.  Add NPE guard.

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java?view=diff&rev=534196&r1=534195&r2=534196
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
(original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/OperationDescriptionImpl.java
Tue May  1 11:54:24 2007
@@ -628,10 +628,12 @@
                 //searching for opDesc of sync operation.
                 OperationDescription[] ods = null;
                 ods = eid.getOperationForJavaMethod(webMethodAnnoName);
-                for (OperationDescription od : ods) {
-                    if (od.getJavaMethodName().equals(webMethodAnnoName)) {
-                        opDesc = od;
-                        break;
+                if (ods != null) {
+                    for (OperationDescription od : ods) {
+                        if (od.getJavaMethodName().equals(webMethodAnnoName)) {
+                            opDesc = od;
+                            break;
+                        }
                     }
                 }
             }



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message