Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-05-14 04:59:35 -0400
committerTobias Schwarz2013-05-14 04:59:35 -0400
commit2b9e6a912e4600a17c58530a3affc442e08ac5c3 (patch)
tree508b83f44cb42b7b5045c2df4aa8f0e8ea3a2f90
parentca87182aae661f4820fb0acb5049357413c37d33 (diff)
downloadorg.eclipse.tcf-2b9e6a912e4600a17c58530a3affc442e08ac5c3.tar.gz
org.eclipse.tcf-2b9e6a912e4600a17c58530a3affc442e08ac5c3.tar.xz
org.eclipse.tcf-2b9e6a912e4600a17c58530a3affc442e08ac5c3.zip
Target Explorer: tcp/ssl peer only complete when port is set
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/nodes/PeerModel.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/nodes/PeerModel.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/nodes/PeerModel.java
index 0220cf25a..8f262aeb0 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/nodes/PeerModel.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/nodes/PeerModel.java
@@ -150,7 +150,8 @@ public class PeerModel extends ContainerModelNode implements IPeerModel {
} else {
// For TCP or SSL transport, ATTR_IP_HOST must not be null.
String ip = getPeer().getAttributes().get(IPeer.ATTR_IP_HOST);
- if (("TCP".equals(transport) || "SSL".equals(transport)) && ip == null) { //$NON-NLS-1$ //$NON-NLS-2$
+ String port = getPeer().getAttributes().get(IPeer.ATTR_IP_PORT);
+ if (("TCP".equals(transport) || "SSL".equals(transport)) && (ip == null || port == null)) { //$NON-NLS-1$ //$NON-NLS-2$
complete = false;
}

Back to the top