You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by mc...@apache.org on 2008/01/30 13:01:21 UTC
svn commit: r616731 -
/incubator/tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceProcessor.java
Author: mcombellack
Date: Wed Jan 30 04:01:20 2008
New Revision: 616731
URL: http://svn.apache.org/viewvc?rev=616731&view=rev
Log:
TUSCANY-2023 Fix NPE when Service Implementation exposes multiple services and has a callback and one of the implemented interfaces does not have a callback
Modified:
incubator/tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceProcessor.java
Modified: incubator/tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceProcessor.java?rev=616731&r1=616730&r2=616731&view=diff
==============================================================================
--- incubator/tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceProcessor.java (original)
+++ incubator/tuscany/java/sca/modules/implementation-java/src/main/java/org/apache/tuscany/sca/implementation/java/introspect/impl/ServiceProcessor.java Wed Jan 30 04:01:20 2008
@@ -135,7 +135,7 @@
}
for (Service service : type.getServices()) {
JavaInterface javaInterface = (JavaInterface)service.getInterfaceContract().getCallbackInterface();
- if (baseType == javaInterface.getJavaClass()) {
+ if (javaInterface != null && baseType == javaInterface.getJavaClass()) {
callbackService = service;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org