shale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gvanma...@apache.org
Subject svn commit: r473876 - /shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/utils/PluggableLookupCommand.java
Date Sun, 12 Nov 2006 04:50:14 GMT
Author: gvanmatre
Date: Sat Nov 11 20:50:13 2006
New Revision: 473876

URL: http://svn.apache.org/viewvc?view=rev&rev=473876
Log:
Added null pointer check (SHALE-330).

Modified:
    shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/utils/PluggableLookupCommand.java

Modified: shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/utils/PluggableLookupCommand.java
URL: http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/utils/PluggableLookupCommand.java?view=diff&rev=473876&r1=473875&r2=473876
==============================================================================
--- shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/utils/PluggableLookupCommand.java
(original)
+++ shale/framework/trunk/shale-clay/src/main/java/org/apache/shale/clay/utils/PluggableLookupCommand.java
Sat Nov 11 20:50:13 2006
@@ -89,7 +89,9 @@
 
             if (targetCommand != null) {
                Command command = getCatalog().getCommand(targetCommand);
-               return command.execute(context);
+               if (command != null) {
+                   return command.execute(context);
+               }
             }
         }
         return super.execute(context);



Mime
View raw message