diff options
author | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-11-15 10:18:13 +0000 |
---|---|---|
committer | antelder <antelder@13f79535-47bb-0310-9956-ffa450edef68> | 2010-11-15 10:18:13 +0000 |
commit | 5db2a92b891add878e2bcc862b528a4c1e7536d2 (patch) | |
tree | b21234d60dad42e37e16a183b61f23565088b704 /sca-java-2.x/trunk/modules/implementation-bpel/src | |
parent | 8e2f404578611663a44cdf0093319fbcb9b2d4bc (diff) |
Fix potential NPE when bpel is unresolved
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1035207 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/implementation-bpel/src')
-rw-r--r-- | sca-java-2.x/trunk/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELDocumentModelResolver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELDocumentModelResolver.java b/sca-java-2.x/trunk/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELDocumentModelResolver.java index 83860f59e5..2821130ca7 100644 --- a/sca-java-2.x/trunk/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELDocumentModelResolver.java +++ b/sca-java-2.x/trunk/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELDocumentModelResolver.java @@ -118,7 +118,7 @@ public class BPELDocumentModelResolver implements ModelResolver { // Not found, Lookup a definition for the given namespace, within contribution resolved = (BPELProcessDefinition) map.get(qname); - if(resolved.isUnresolved()) { + if(resolved != null && resolved.isUnresolved()) { try { resolve(resolved, context); } catch(Exception e) { |