servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r603726 - /servicemix/smx4/runtime/trunk/gshell/gshell-core/src/main/java/org/apache/geronimo/gshell/spring/SpringCommandRegistry.java
Date Wed, 12 Dec 2007 20:27:32 GMT
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());
             }



Mime
View raw message