Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 525489203 for ; Tue, 1 May 2012 20:27:17 +0000 (UTC) Received: (qmail 33291 invoked by uid 500); 1 May 2012 20:27:17 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 33208 invoked by uid 500); 1 May 2012 20:27:16 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 33199 invoked by uid 99); 1 May 2012 20:27:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 20:27:16 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 May 2012 20:27:14 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D4A5C42A2D7 for ; Tue, 1 May 2012 20:26:53 +0000 (UTC) Date: Tue, 1 May 2012 20:26:53 +0000 (UTC) From: "Henri Biestro (JIRA)" To: issues@commons.apache.org Message-ID: <270685109.14381.1335904013876.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1455531573.11156.1335822830516.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (JEXL-131) UnifiedJexl (2.1.x) / Jxlt (3.0) parsing may fail with NPE MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JEXL-131?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Henri Biestro resolved JEXL-131. -------------------------------- Resolution: Fixed Fixed in part of commit revision 1332806: jexl2/pom.xml jexl2/src/main/java/org/apache/commons/jexl2/Interpreter.java jexl2/src/main/java/org/apache/commons/jexl2/JexlArithmetic.java jexl2/src/main/java/org/apache/commons/jexl2/JexlEngine.java jexl2/src/main/java/org/apache/commons/jexl2/JexlException.java jexl2/src/main/java/org/apache/commons/jexl2/ObjectContext.java >> jexl2/src/main/java/org/apache/commons/jexl2/UnifiedJEXL.java >> jexl2/src/main/java/org/apache/commons/jexl2/parser/ASTNumberLiteral.java jexl2/src/test/java/org/apache/commons/jexl2/ArithmeticTest.java jexl2/src/test/java/org/apache/commons/jexl2/ArrayLiteralTest.java jexl2/src/test/java/org/apache/commons/jexl2/ExceptionTest.java jexl2/src/test/java/org/apache/commons/jexl2/IssuesTest.java > UnifiedJexl (2.1.x) / Jxlt (3.0) parsing may fail with NPE > ------------------------------------------------------------ > > Key: JEXL-131 > URL: https://issues.apache.org/jira/browse/JEXL-131 > Project: Commons JEXL > Issue Type: Bug > Affects Versions: 2.1 > Reporter: Henri Biestro > Assignee: Henri Biestro > Fix For: 2.1.2, 3.0 > > > From Clay Bruce email: > the offending code is the method startsWith which can be found at line 1345 in UnifiedJEXL.java. > Problem is that sequence is not tested to see if the index is available before trying to access it. > A source with lines starting with leading spaces will trigger the bug. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira