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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.15.3
    • Fix Version/s: 4.16.1, 4.17.0
    • Component/s: Testing
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                tomjenkinson Thomas Jenkinson
                Reporter:
                swd847 Stuart Douglas
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: