incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1163322 - /incubator/lcf/trunk/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/IfCommand.java
Date Tue, 30 Aug 2011 18:20:38 GMT
Author: kwright
Date: Tue Aug 30 18:20:38 2011
New Revision: 1163322

URL: http://svn.apache.org/viewvc?rev=1163322&view=rev
Log:
Missed a null test clause

Modified:
    incubator/lcf/trunk/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/IfCommand.java

Modified: incubator/lcf/trunk/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/IfCommand.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/IfCommand.java?rev=1163322&r1=1163321&r2=1163322&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/IfCommand.java
(original)
+++ incubator/lcf/trunk/framework/script-engine/src/main/java/org/apache/manifoldcf/scriptengine/IfCommand.java
Tue Aug 30 18:20:38 2011
@@ -41,7 +41,7 @@ public class IfCommand implements Comman
     {
       rval = sp.parseStatements(currentStream);
       t = currentStream.peek();
-      if (t != null &&t.getToken().equals("else"))
+      if (t != null && t.getToken() != null && t.getToken().equals("else"))
       {
         currentStream.skip();
         // Skip statements



Mime
View raw message