Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2013-07-30 08:11:23 +0000
committerTobias Schwarz2013-07-30 08:11:23 +0000
commita6a2df64643d736985e52ad52205ec1f4915d912 (patch)
treee690c2e9e349fc4d34cbd9f9a55a6c814140dadb /target_explorer
parentcd3cdbc0a85da2f57a2732cb63fb4e29f6ab4848 (diff)
downloadorg.eclipse.tcf-a6a2df64643d736985e52ad52205ec1f4915d912.tar.gz
org.eclipse.tcf-a6a2df64643d736985e52ad52205ec1f4915d912.tar.xz
org.eclipse.tcf-a6a2df64643d736985e52ad52205ec1f4915d912.zip
Target Explorer: fix empty service list instead of null
Diffstat (limited to 'target_explorer')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/services/LocatorModelUpdateService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/services/LocatorModelUpdateService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/services/LocatorModelUpdateService.java
index f9da66c79..f55587249 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/services/LocatorModelUpdateService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.locator/src/org/eclipse/tcf/te/tcf/locator/services/LocatorModelUpdateService.java
@@ -115,6 +115,8 @@ public class LocatorModelUpdateService extends AbstractLocatorModelService imple
protected String makeString(Collection<String> collection) {
Assert.isNotNull(collection);
+ if (collection.isEmpty()) return null;
+
String buffer = collection.toString();
buffer = buffer.replaceAll("\\[", "").replaceAll("\\]", ""); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$

Back to the top