[jbossts-issues] [JBoss JIRA] (JBTM-990) com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction catches and throws a NullPointerException instead of checking if it is null first

Tom Jenkinson (JIRA) jira-events at lists.jboss.org
Fri Oct 26 06:55:01 EDT 2012


     [ https://issues.jboss.org/browse/JBTM-990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom Jenkinson updated JBTM-990:
-------------------------------

    Fix Version/s: 4.17.0
                       (was: 5.0.0.M2)

    
> com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction catches and throws a NullPointerException instead of checking if it is null first
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: JBTM-990
>                 URL: https://issues.jboss.org/browse/JBTM-990
>             Project: JBoss Transaction Manager
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 4.15.3
>            Reporter: Stuart Douglas
>            Assignee: Tom Jenkinson
>             Fix For: 4.16.1, 4.17.0
>
>
> com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction has the following:
> try
> {
>   return theTransaction.getStatus();
> }
> catch (NullPointerException ex)
> {
>   return javax.transaction.Status.STATUS_NO_TRANSACTION;
> }
> This mean's that anyone trying to debug a NPE with an exception breakpoint will constantly hit this, as well as being much slower than a simple null check.  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbossts-issues mailing list