Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-990

com.arjuna.ats.internal.jta.transaction.jts.BaseTransaction catches and throws a NullPointerException instead of checking if it is null first

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.16.1, 4.17.0
    • 4.15.3
    • Testing
    • None

    Description

      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.

      Attachments

        Activity

          People

            thjenkin@redhat.com Tom Jenkinson
            sdouglas1@redhat.com Stuart Douglas
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: