[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
Stuart Douglas (Created) (JIRA)
jira-events at lists.jboss.org
Thu Dec 1 00:17:41 EST 2011
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
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