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

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

      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.

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

                Created:
                Updated:
                Resolved: