You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrey Razumovsky (JIRA)" <ji...@apache.org> on 2009/10/11 21:56:31 UTC
[jira] Closed: (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 ]
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.