summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/shell/src/main
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-07-07 09:29:09 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-07-07 09:29:09 +0000
commitb05cb129243d11d7640ad163c3b4ce418a922f8f (patch)
treef21f6c34e484219d2baf2d3a0c30bee21222dcf0 /sca-java-2.x/trunk/modules/shell/src/main
parent43581b0d383083350dcbf58cba22875916ff6731 (diff)
Avoid not founds due to extra whitespace
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@961321 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/shell/src/main')
-rw-r--r--sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/TShellCompletor.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/TShellCompletor.java b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/TShellCompletor.java
index a3069ff090..ad6fb74e08 100644
--- a/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/TShellCompletor.java
+++ b/sca-java-2.x/trunk/modules/shell/src/main/java/org/apache/tuscany/sca/shell/jline/TShellCompletor.java
@@ -81,6 +81,7 @@ public class TShellCompletor extends ArgumentCompletor {
if (argIndex > 0) {
/* set the last argument in a static for the CompositeURICompletor */
lastArg = list.getArguments()[argIndex-1];
+ if (lastArg != null) lastArg = lastArg.trim();
}
final Completor comp;