Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 25688 invoked from network); 13 Dec 2007 09:43:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Dec 2007 09:43:12 -0000 Received: (qmail 76420 invoked by uid 500); 13 Dec 2007 09:43:01 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 76407 invoked by uid 500); 13 Dec 2007 09:43:01 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 76398 invoked by uid 99); 13 Dec 2007 09:43:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Dec 2007 01:43:00 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 13 Dec 2007 09:42:40 +0000 Received: (qmail 11147 invoked from network); 13 Dec 2007 09:42:43 -0000 Received: from unknown (HELO localhost) (127.0.0.1) by localhost with SMTP; 13 Dec 2007 09:42:43 -0000 Message-Id: From: Andrus Adamchik To: user@cayenne.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: 2.0.4 NullPointerException in ExpressionFactory.likeExp Date: Thu, 13 Dec 2007 11:42:42 +0200 References: X-Mailer: Apple Mail (2.915) X-Virus-Checked: Checked by ClamAV on apache.org Hi Carmen, I just checked the SVN history of the files in question. It is a new bug introduced when fixing another bug (CAY-832). I'll open a Jira for that and we'll implement a fix. You can use 2.0.3 for now if you can't work around this issue in the code. Thanks, Andrus On Dec 13, 2007, at 7:19 AM, Carmen Grantham wrote: > After updating to 2.0.4 I am getting a NullPointerException on the > following > line of code: > > Expression exp = ExpressionFactory.likeExp(Customer.FLAG_PROPERTY, > null); > > It worked fine in 2.0.2. > > > Stack Trace: > > Exception in thread "main" java.lang.NullPointerException > at org.apache.cayenne.exp.parser.SimpleNode.connectChildren( > SimpleNode.java:264) > at org.apache.cayenne.exp.parser.ASTLike.( ASTLike.java:43) > at org.apache.cayenne.exp.ExpressionFactory.likeExp( > ExpressionFactory.java:388) > > > thanks for your help > Carmen