You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2011/05/17 19:50:47 UTC
[jira] [Closed] (OFBIZ-4284) NullPointerException in
GenericDelegator during testMode rollback
[ https://issues.apache.org/jira/browse/OFBIZ-4284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jacques Le Roux closed OFBIZ-4284.
----------------------------------
Resolution: Fixed
Fix Version/s: SVN trunk
Assignee: Jacques Le Roux
Thanks Martin,
Your patch is in
* trunk at r1104423
* R11.04 at r1104431
* R10.04 at r1104428
* R09.04 at r1104429
> NullPointerException in GenericDelegator during testMode rollback
> -----------------------------------------------------------------
>
> Key: OFBIZ-4284
> URL: https://issues.apache.org/jira/browse/OFBIZ-4284
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: SVN trunk
> Reporter: Martin Kreidenweis
> Assignee: Jacques Le Roux
> Fix For: SVN trunk
>
> Attachments: OFBIZ-4284.patch
>
>
> Test mode rollback doesn't work right in {{GenericDelegator}} for calls to {{removeByPrimary()}} key and {{removeByValue()}} when the row to be deleted didn't exist in the first place. It creates a {{TestOperation}} with a null value and subsequently fails to create that during rollback.
> First, the TestOperation shouldn't be created at all. Second, if {{null}} is passed to {{GenericDelegator.create()}} it tries to handle this, but fails with a NullPointerException.
> Patch to come.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira