You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Martin Kreidenweis (JIRA)" <ji...@apache.org> on 2011/05/17 12:17:47 UTC
[jira] [Updated] (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 ]
Martin Kreidenweis updated OFBIZ-4284:
--------------------------------------
Attachment: OFBIZ-4284.patch
patch fixing both described issues
> 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
> 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