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

Tim McConnell updated OPENJPA-1292:
-----------------------------------

    Attachment: OPENJPA-1292.patch

This patch will prevent NullPointerExceptions when 
WriteBehindConfigurationExceptions are throw. I haven't provided a testcase as 
the failure can easily be demonstrated by running only the existing 
WriteBehindConfiguration(s) testcases......

> NullPointerException when handling WriteBehindConfigurationException
> --------------------------------------------------------------------
>
>                 Key: OPENJPA-1292
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1292
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: writebehind
>    Affects Versions: 2.0.0
>            Reporter: Tim McConnell
>            Assignee: Tim McConnell
>            Priority: Minor
>             Fix For: 2.0.0
>
>         Attachments: OPENJPA-1292.patch
>
>
> There is a small window in PersistenceProviderImpl where an exception can be 
> caught such that the _log instance variable is used prior to it being 
> initialized, resulting in a NullPointerException getting thrown and masking 
> the real exception (e.g., WriteBehindConfigurationException).

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

Reply via email to