Re: 2.0.4 NullPointerException in ExpressionFactory.likeExp

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Dec 13 2007 - 04:42:42 EST

  • Next message: james yong: "Register object in multiple dataMaps environment"

    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



    This archive was generated by hypermail 2.0.0 : Thu Dec 13 2007 - 04:43:15 EST