cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey Razumovsky (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CAY-1257) [PATCH] NullPointerException in Class Qualifier when using "field = null"
Date Sun, 11 Oct 2009 19:56:31 GMT

     [ https://issues.apache.org/jira/browse/CAY-1257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrey Razumovsky closed CAY-1257.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0 beta 1
         Assignee: Andrey Razumovsky

Applying patch by Jeremias now. In the future, though, it might be a good idea to stop the
unwrapping

> [PATCH] NullPointerException in Class Qualifier when using "field = null"
> -------------------------------------------------------------------------
>
>                 Key: CAY-1257
>                 URL: https://issues.apache.org/jira/browse/CAY-1257
>             Project: Cayenne
>          Issue Type: Bug
>          Components: Cayenne Core Library
>            Reporter: Jeremias Maerki
>            Assignee: Andrey Razumovsky
>             Fix For: 3.0 beta 1
>
>         Attachments: SimpleNodeNullFix.diff
>
>
> I have a little class hierarchy where there's an abstract base class and two subclasses.
One subclass is for a top-level element and the other for child elements. Both classes can
have children, but the top-level element has no parent plus a few extra attributes. When I
set the qualifier for the top-level class to "parent_id = null" I got a NullPointerException.
Attached patch will fix this. Sorry for not providing a test case, I have yet to figure out
how this would be done easily.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message