summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/implementation-java-runtime/src/main
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-09-14 10:19:53 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-09-14 10:19:53 +0000
commitcbc194b482429c79a3652c7cb1c395f811b1d77e (patch)
tree33a2a209e93e0d54f6e8bcca492652893e054ddb /java/sca/modules/implementation-java-runtime/src/main
parenta00b6cbb952ff1bb9a1bb59335e736db0d979708 (diff)
Avoid NPE in the wire processor
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@814561 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/implementation-java-runtime/src/main')
-rw-r--r--java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaCallbackRuntimeWireProcessor.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaCallbackRuntimeWireProcessor.java b/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaCallbackRuntimeWireProcessor.java
index 27a16e0e44..785d89b677 100644
--- a/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaCallbackRuntimeWireProcessor.java
+++ b/java/sca/modules/implementation-java-runtime/src/main/java/org/apache/tuscany/sca/implementation/java/invocation/JavaCallbackRuntimeWireProcessor.java
@@ -68,6 +68,9 @@ public class JavaCallbackRuntimeWireProcessor implements RuntimeWireProcessor {
return;
}
RuntimeComponent component = (RuntimeComponent) wire.getEndpointReference().getComponent();
+ if (component == null) {
+ return;
+ }
Implementation implementation = component.getImplementation();
if (!(implementation instanceof JavaImplementation)) {
return;