commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject svn commit: r1762198 - /commons/proper/el/trunk/src/java/org/apache/commons/el/FunctionInvocation.java
Date Sun, 25 Sep 2016 12:43:05 GMT
Author: dbrosius
Date: Sun Sep 25 12:43:05 2016
New Revision: 1762198

URL: http://svn.apache.org/viewvc?rev=1762198&view=rev
Log:
throw proper exception, instead of NPE when the target can't be found

Modified:
    commons/proper/el/trunk/src/java/org/apache/commons/el/FunctionInvocation.java

Modified: commons/proper/el/trunk/src/java/org/apache/commons/el/FunctionInvocation.java
URL: http://svn.apache.org/viewvc/commons/proper/el/trunk/src/java/org/apache/commons/el/FunctionInvocation.java?rev=1762198&r1=1762197&r2=1762198&view=diff
==============================================================================
--- commons/proper/el/trunk/src/java/org/apache/commons/el/FunctionInvocation.java (original)
+++ commons/proper/el/trunk/src/java/org/apache/commons/el/FunctionInvocation.java Sun Sep
25 12:43:05 2016
@@ -104,8 +104,8 @@ public class FunctionInvocation
             String message = MessageUtil.getMessageWithArgs(
                 Constants.UNKNOWN_FUNCTION, functionName);
             log.error(message);
-            throw new ELException(message);
         }
+        throw new ELException(message);
     }      
 
     // ensure that the number of arguments matches the number of parameters



Mime
View raw message