summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--java/sca/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELPartnerLinkElement.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/java/sca/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELPartnerLinkElement.java b/java/sca/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELPartnerLinkElement.java
index 62078f8061..4ea0e5e49e 100644
--- a/java/sca/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELPartnerLinkElement.java
+++ b/java/sca/modules/implementation-bpel/src/main/java/org/apache/tuscany/sca/implementation/bpel/xml/BPELPartnerLinkElement.java
@@ -78,7 +78,9 @@ public class BPELPartnerLinkElement {
}
private PortType getRolePortType( String theRole ) {
- if( theRole == null ) return null;
+ if( theRole == null || theRole.length() == 0 ) {
+ return null;
+ } //end if
if ( theRole.equals( pLinkType.getRole1Name() ) ) {
return pLinkType.getRole1pType();
} else if ( theRole.equals( pLinkType.getRole2Name() ) ) {