[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 Jan 20 08:12:18 EST 2012


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

Tom Jenkinson resolved JBTM-990.
--------------------------------

    Resolution: Done


Done
                
> 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, 5.0.0.M2
>
>
> 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbossts-issues mailing list