cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: 2.0.4 NullPointerException in ExpressionFactory.likeExp
Date Thu, 13 Dec 2007 09:42:42 GMT
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.<init>( ASTLike.java:43)
>    at org.apache.cayenne.exp.ExpressionFactory.likeExp(
> ExpressionFactory.java:388)
>
>
> thanks for your help
> Carmen


Mime
View raw message