You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2007/12/12 21:27:32 UTC

svn commit: r603726 - /servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/SpringCommandRegistry.java

Author: gnodet
Date: Wed Dec 12 12:27:31 2007
New Revision: 603726

URL: http://svn.apache.org/viewvc?rev=603726&view=rev
Log:
Fix bad message when command is not found

Modified:
    servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/SpringCommandRegistry.java

Modified: servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/SpringCommandRegistry.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/SpringCommandRegistry.java?rev=603726&r1=603725&r2=603726&view=diff
==============================================================================
--- servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/SpringCommandRegistry.java (original)
+++ servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/SpringCommandRegistry.java Wed Dec 12 12:27:31 2007
@@ -165,6 +165,9 @@
                 throw new NotFoundException(s);
             }
             Node n = ((GroupNode) node).find(s);
+            if (n == null) {
+                throw new NotFoundException(s);
+            }
             if (n instanceof GroupNode) {
                 return new CommandNode(n.getName(), n.getName());
             }