geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r699826 - /geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandSupport.java
Date Sun, 28 Sep 2008 14:33:36 GMT
Author: jdillon
Date: Sun Sep 28 07:33:36 2008
New Revision: 699826

URL: http://svn.apache.org/viewvc?rev=699826&view=rev
Log:
Use getAction() to allow state to work as desired, this fixed NPE when using links

Modified:
    geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandSupport.java

Modified: geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandSupport.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandSupport.java?rev=699826&r1=699825&r2=699826&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandSupport.java
(original)
+++ geronimo/gshell/trunk/gshell-wisdom/gshell-wisdom-core/src/main/java/org/apache/geronimo/gshell/wisdom/command/CommandSupport.java
Sun Sep 28 07:33:36 2008
@@ -285,6 +285,8 @@
         CommandResult result;
 
         try {
+            CommandAction action = getAction();
+            
             log.trace("Executing action: {}", action);
 
             Object value = action.execute(ctx);



Mime
View raw message