You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Jeremias Maerki (JIRA)" <ji...@apache.org> on 2009/08/13 11:51:14 UTC

[jira] Updated: (CAY-1257) [PATCH] NullPointerException in Class Qualifier when using "field = null"

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

Jeremias Maerki updated CAY-1257:
---------------------------------

    Attachment: SimpleNodeNullFix.diff

> [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
>         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.